ctrl+alt+s proxy in goland editor https://goproxy.io
打开终端,执行下面的命令:
go env -w GO111MODULE=on
如果后面不需要使用,可以再将值设置为off。
最后再来设置一下proxy代理。
go env -w GOPROXY=https://goproxy.cn,direct
如果你的操作系统是mac 或则Linux,可以采用下面的方式进行设置。
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn
go advanced documentation: http://www.topgoer.com/
beego pack linux run package command bee pack -be GOOS=linux
Title creation project
bee api demo_name -conn="root:root@tcp(127.0.0.1:12581)/custom_table"
Title generation code
bee generate appcode -driver=mysql -conn="root:root@tcp(127.0.0.1:12581)/custom_table"
Title generation document
bee run -gendoc=true -downdoc=true