package main import "fmt" func main() { fmt.Println("Hello World!") }
[root@jeremy golang]# go run hello.go Hello World!
[root@jeremy golang]# go build hello.go [root@jeremy golang]# ls hello hello.go [root@jeremy golang]# ./hello Hello World!