Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 433 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 433 Bytes

gomodule

在Go1.11版本中使用go mod init时出错:

➜ gomodule git:(master) ✗ go mod init

go: modules disabled inside GOPATH/src by GO111MODULE=auto; see 'go help modules'

需要开启GO111MODULE=on

➜ gomodule git:(master) ✗ export GO111MODULE=on

➜ gomodule git:(master) ✗ go mod init

go: creating new go.mod: module github.com/perry14/gomodule

Mac下设置代理

export GOPROXY=https://goproxy.cn