Hello world

Here is a nice example from golan website [1]. An online version can be found here.

// go run hello.py
package main
import "fmt"

func main(){
    fmt.Printf("hello, world\n")
}

To compile and run it, simply type the following command, assuming you name it as hello.go.

$ go run hello.go

The result should be:

hello, world

To install go compiler, please check out this page.

Works cited:

[1] https://golang.org/doc/install#testing