Window系统安装 bee

1) 安装bee

>go get github.com/beego/bee

安装后找不到bee.exe

2) 编译生成bee.exe 并拷贝 bee.exe 到 \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

Window系统安装 bee_第1张图片

>go build -mod=mod

再次运行

> bee run

浏览器中打开链接 http://localhost:8080Window系统安装 bee_第2张图片

 

你可能感兴趣的:(Go语言,golang,golang)