gobyexample/001-hello-world.go
Mark McGranaghan 5d217ce5c1 easy docs
2012-09-21 07:57:50 -07:00

13 lines
296 B
Go

package main // Here's an example Go program.
import "fmt"
func main() {
fmt.Println("Hello world") // It prints `Hello world`.
}
/*
$ go run hello-world.go // Put this code in hello-world.go,
Hello world // then use `go run` to run it.
*/