Go Hello World: Your First Go Program
Write your first Go program: package main, import fmt and print with fmt.Println. Learn how a Go program is structured — it runs right in your browser.
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}