下载地址
http://golangtc.com/download
环境变量
GOROOT:Go的安装目录
PATH:%GOROOT%\bin
第一个Go程序hello.go
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World!")
}
Windows下编译并运行hello.go
go build hello.go
hello
或者
go run hello.go