goland 编辑器中 ctrl+alt+s 代理 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高级文档:http://www.topgoer.com/
beego打包linux运行包命令 bee pack -be GOOS=linux
标题创建项目
bee api demo_name -conn=“root:root@tcp(127.0.0.1:12581)/custom_table”
标题生成代码
bee generate appcode -driver=mysql -conn=“root:root@tcp(127.0.0.1:12581)/custom_table”
标题生成文档
bee run -gendoc=true -downdoc=true