在 Mac os 下配置 Go lang 开发环境

刘悦 at 
首先,下载安装包,国内可以在这上面下载 https://studygolang.com/dl 目前的稳定版是 go1.12.5.darwin-amd64.pkg 下载安装后,配置环境变量 vim~/.bash_profile 在文件内最后加入#EnablethegomodulesfeatureexportGO111MODULE="on"#SettheGOPROXYenvironmentvariableexportGOPROXY="https://mirrors.aliyun.com/goproxy/"GOROOT=/usr/local/goexportGOROOTe...……