win7 64下安装gocode

来源:互联网 发布:淘宝女装春季服饰图片 编辑:程序博客网 时间:2024/06/05 18:50

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安装目录下的git-cmd.bat,在打开的dos窗口运行

go get -u -ldflags -H=windowsgui github.com/nsf/gocode

会自动编译生成exe文件

gocode源码下载到D:\go\test\src

exe在D:\go\test\bin

将gocode.exe复制到C:\Go\bin


安装完成

原创粉丝点击