go下载地址:https://golang.google.cn/
环境变量设置(永久配置)
命令行:vim ~/.bash_profile
export PATH=/usr/local/go/bin:$PATH
export GOROOT=/usr/local/go(go目录)
export GOPATH=/Users/yu/Desktop/快捷/Unclutter\ Files/golang(自己的go目录)
export GOBIN=/Users/yu/Desktop/快捷/Unclutter\ Files/golang/bin (自己的go目录)
网友评论