1) 安装bee
>go get github.com/beego/bee
安装后找不到bee.exe
2) 编译生成bee.exe 并拷贝 bee.exe 到
- >cd %GOPATH%\pkg\mod\github.com\beego\bee\v2@v2.0.4
- >go build
- >md %GOPATH%\bin
- >copy bee.exe %GOPATH%\bin
3)创建应用
- > bee new hello
- > bee run

>go build -mod=mod
再次运行
> bee run
浏览器中打开链接 http://localhost:8080