Go Get Started
Install Go from go.dev, then create a file called hello.go. Run it with go run hello.go, or build a binary with go build. A module is created with go mod init name.
Example
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
// Terminal:
// go run hello.go
// go build hello.goExercise
Run a Go file from the terminal.
go hello.go
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.