UP | HOME

golang go get失败解决办法

Table of Contents

golang go get失败解决办法

linux

  vim ~/.bashrc or ~/.zshrc
  #尾部添加
  export GO111MODULE=on
  export GOPROXY=https://goproxy.cn,direct or GOPROXY=https://goproxy.io,direct
  #然后
  source ~/.bashrc or source ~/.zshrc
  #版本要求
  go version >=1.13

详细可以请参考 https://goproxy.io/zh/

First created: 2021-01-08 Fri 00:00
Last updated: 2021-11-25 Thu 23:21
Power by Emacs 27.1 (Org mode 9.4)
© 2017 – 2021 by josephzeng