codegen是一个脚手架工具,用于生成项目初始化代码
请确认已经设置了Go环境变量GOBIN,并将此环境变量加入到了PATH中
go get -u github.com/chenjie199234/Corelib
cd codegen
go install
终端运行 codegen -d path/to/create/the/project(default is current work dir) -n "project's name"
linux/mac: 终端切换工作目录到项目目录,执行 ./cmd.sh
windows: 终端切换工作目录到项目目录,执行 ./cmd.bat
linux/max: 终端切换工作目录到项目目录,执行 ./cmd.sh pb
windows: 终端切换工作目录到项目目录,执行 ./cmd.bat pb
linux/mac: 终端切换工作目录到项目目录,执行 ./cmd.sh sub "sub service name"
windows: 终端切换工作目录到项目目录,执行 ./cmd.bat sub "sub service name"
linux/mac: 终端切换工作目录到项目目录,执行 ./cmd.sh kube
windows: 终端切换工作目录到项目目录,执行 ./cmd.bat kube