1.开启go mod官方的依赖管理工具
export GO111MODULE=on

2.使用国内代理
go env -w GOPROXY=https://goproxy.cn