1) 安装bee
>go get github.com/beego/bee
安装后找不到bee.exe
2) 编译生成bee.exe 并拷贝 bee.exe 到 <GOPATH>\bin 目录
>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

2573

被折叠的 条评论
为什么被折叠?



