一.环境安装
MacOS:
https://storage.googleapis.com/golang/go1.8.3.darwin-amd64.tar.gz
https://storage.googleapis.com/golang/go1.8.3.darwin-amd64.pkg
tar -xvf go1.8.3.darwin-amd64.tar.gz-C /usr/local/go
export PATH=$PATH:/usr/local/go/bin
编辑:
leeco:go leeco$ cat aa.go
package main
import
"fmt"
func main() {
fmt.Println("This
is a line!!")
}
运行:
leeco:go leeco$ go run aa.go
This is a line!!
资料参考:
有疑问加站长微信联系(非本文作者)