用过go的同学都知道go get …… 是一个漫长的过程,既然python 有pip国内镜像,node 也有国内镜像,那go是否有类似的镜像呢?确实有go mod + goproxy 可参考http://mirrors.aliyun.com/goproxy/,具体怎实现呢?
package main import "github.com/kataras/iris" func main() {
app := iris.New()
app.Get("/", func(ctx iris.Context){})
app.Run(iris.Addr(":8080"))
}
```
goland 2020.1 设置下载依赖包的代理地址

image

image

image
有疑问加站长微信联系(非本文作者)
