• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

go开发环境搭建

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

环境变量
GOPATH : D:\code\go
GOROOT : C:\Program Files\Go
Path : %GOPATH%\bin;%GOROOT%\bin;

在GOPATH目录下新建bin、pkg、src三个文件夹

如果使用的ide是vscode 建议重启系统

存放地址:%GOPATH%\src\golang.org\x
https://github.com/golang/tools.git
https://github.com/golang/mod.git
https://github.com/golang/xerrors.git
https://github.com/golang/lint.git

存放地址:%GOPATH%\src下 一级目录是url中的域名,即:github.com
子目录结构同url地址
例如:git clone https://github.com/mdempsky/gocode.git
存放的地址就是%GOPATH%\src\github.com\mdempsky\

git clone https://github.com/mdempsky/gocode.git
git clone https://github.com/uudashr/gopkgs.git
git clone https://github.com/ramya-rao-a/go-outline.git
git clone https://github.com/acroca/go-symbols.git
git clone https://github.com/stamblerre/gocode.git
git clone https://github.com/rogpeppe/godef.git
git clone https://github.com/sqs/goreturns.git
git clone https://github.com/godoctor/godoctor.git
git clone https://github.com/fatih/gomodifytags.git
git clone https://github.com/josharian/impl.git
git clone https://github.com/davidrjenni/reftools.git
git clone https://github.com/cweill/gotests.git
git clone https://github.com/haya14busa/goplay.git
git clone https://github.com/go-delve/delve.git
git clone https://github.com/karrick/godirwalk.git
git clone https://github.com/pkg/errors.git
git clone https://github.com/skratchdot/open-golang.git

cd %GOPATH%
go install github.com/mdempsky/gocode
go install github.com/uudashr/gopkgs/v2/cmd/gopkgs
go install github.com/ramya-rao-a/go-outline
go install github.com/acroca/go-symbols
go install golang.org/x/tools/cmd/guru
go install golang.org/x/tools/cmd/gorename
go install github.com/cweill/gotests/...
go install github.com/fatih/gomodifytags
go install github.com/josharian/impl
go install github.com/davidrjenni/reftools/cmd/fillstruct
go install github.com/haya14busa/goplay/cmd/goplay
go install github.com/godoctor/godoctor
go install github.com/go-delve/delve/cmd/dlv
go install github.com/stamblerre/gocode
go install github.com/rogpeppe/godef
go install github.com/sqs/goreturns
go install golang.org/x/lint/golint

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Goroutine编排框架:oklog/run包发布时间:2022-07-10
下一篇:
go godotenv配置环境变量发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap