Lesson 1 of 60
GoWelcome & Course Overview
10 minutes
Welcome to Go Programming
Go is a productive language designed for simplicity, clear syntax, and fast compile times. In this lesson, you will learn how Go source files are structured, what a package is, and how to run a basic program.
A Go program is made from one or more packages. The package main is special because it builds an executable program. The main function is the entry point that runs when your program starts.
Go source files are formatted consistently by gofmt, so your code stays readable. A simple Go file looks like this.