本文地址:http://www.04007.cn/article/776.html

#安装beego和bee工具
cd C:\Go\GOPATH\src
C:\Go\GOPATH\src>go get github.com/astaxie/beego
C:\Go\GOPATH\src>go get github.com/beego/bee
C:\Go\GOPATH\src>bee
Bee is a Fast and Flexible tool for managing your Beego Web Application.
USAGE
    bee command [arguments]
AVAILABLE COMMANDS
    version     Prints the current Bee version
    migrate     Runs database migrations
    api         Creates a Beego API application
    bale        Transforms non-Go files to Go source files
    fix         Fixes your application by making it compatible with newer versions of Beego
    dlv         Start a debugging session using Delve
    dockerize   Generates a Dockerfile for your Beego application
    generate    Source code generator
    hprose      Creates an RPC application based on Hprose and Beego frameworks
    new         Creates a Beego application
    pack        Compresses a Beego application into a single file
    rs          Run customized scripts
    run         Run the application by starting a local development server
    server      serving static content over HTTP on port
Use bee help [command] for more information about a command.
ADDITIONAL HELP TOPICS
本文地址:http://www.04007.cn/article/776.html,未经许可,不得转载.

#$GOPATH显示出GOPATH路径
PF1Q5R7Q-FMH+admin@PF1Q5R7Q-FMH MINGW64 /c/Go/GOPATH/src
$ $GOPATH
bash: C:\Go\GOPATH: Is a directory
PF1Q5R7Q-FMH+admin@PF1Q5R7Q-FMH MINGW64 /c/Go/GOPATH/src
#使用go env可以查看详细的信息,包括GOPATH
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\admin\AppData\Local\go-build
set GOENV=C:\Users\admin\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Go\GOPATH
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\admin\AppData\Local\Temp\go-build820215286=/tmp/go-build -gno-record-gcc-switches
本文地址:http://www.04007.cn/article/776.html,未经许可,不得转载.

本文地址:http://www.04007.cn/article/776.html 未经许可,不得转载. 手机访问本页请扫描右下方二维码.

手机扫码直接打开本页面