go get github/xxx 的时候报错
使用国内的源,执行下面2行代码
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct
在再行go get github/xxx 就很快了
goland 编译的时候报错:
cannot find module providing package github.com/astaxie/beego: working directory is not part of a module
这是模块的形式的,所以要创建mod 文件
执行bee 命令 提示cant not found
先把goroot,gopath 加入到 base_profile 中,然后保存,在执行下,
source .bash_profile
确认生效,就OK了,