https://github.com/beego/bee/releases
bee windows
https://github.com/beego/bee/releases/download/v1.10.0/bee_1.10.0_windows_amd64.zip
bee linux
https://github.com/beego/bee/releases/download/v1.10.0/bee_1.10.0_linux_amd64.tar.gz
下载完解压后放到gopath/bin目录下,
vim /etc/profile
export GOROOT=/usr/local/go
export GOPATH=/www/gopath
export GO111MODULE=on
export GOPROXY=https://goproxy.io
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
把gopath的bin目录放到环境变量下
bee new api 创建api项目 然后复制到自己的项目下
然后到自己的项目下 go mod init api
名字要一样