Go Basics

A runnable Go program uses package main and a main function. Import fmt for formatted input and output.

Go
package main
import "fmt"
func main() {
  name := "Ada"
  fmt.Println("Hello,", name)
}
Read the full lesson