码迷,mamicode.com
首页 > 其他好文 > 详细

go mod使用

时间:2020-01-08 01:07:29      阅读:690      评论:0      收藏:0      [点我收藏+]

标签:lang   mirrors   blog   git   ide   end   frame   azure   代理   

1.go mod 使用:

export GO111MODULE=on
export GOPROXY=https://goproxy.cn
go mod download


set GO111MODULE=on    //windows
export GO111MODULE=on //linux

go build -mod = vendor
GOFLAGS = -mod = vendor

说明:

代理地址:

https://goproxy.io
https://goproxy.cn
https://mirrors.aliyun.com/goproxy/
https://athens.azurefd.net

2.Goland go mod配置

https://goframe.org/prepare/gomodule
https://www.jianshu.com/p/6f58f050ceda
https://studygolang.com/articles/15212

相关链接

https://github.com/golang/go/wiki/Modules#how-do-i-use-vendoring-with-modules-is-vendoring-going-away
https://juejin.im/post/5c8e503a6fb9a070d878184a
https://www.cnblogs.com/wt11/p/11340386.html
https://lfoder.github.io/2019/02/26/Go-Modules-go-mod-Goland-IDE%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B/

go mod使用

标签:lang   mirrors   blog   git   ide   end   frame   azure   代理   

原文地址:https://www.cnblogs.com/tomtellyou/p/12164240.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!