One minute
Hello World in Go
Want to get started with Go? Then why not jump into it and make the classic Hello World program!
Create a file called hello.go and put the following code into it:
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
To build the program run go build and run it with ./hello (or if on Windows hello.exe)
That’s it :)