go lang to compile hello world code example Example: hello world golang package main import fmt func main() { fmt.Println("hello, world!") }