golang环境安装配置
go的安装比较简单,下载exe直接执行就可以
windows环境变量里的配置说下
GOROOT C:\Go
GOOS windows
GOARCH amd64
GOPATH D:\go\test
PATH 增加C:\Go\bin
安装msysgit
下载页面
一路next,默认装到C:\msysgit\msysgit
安装gocode
运行msysgit安装目录下的,在打开的dos窗口运行
go get -u -ldflags -H=windowsgui /nsf/gocode
会自动编译生成exe文件
gocode源码下载到D:\go\test\src
exe在D:\go\test\bin
将复制到C:\Go\bin
安装完成