github.com/zeromicro/go-zero
# 安装goctl命令行
go get -u github.com/zeromicro/go-zero
go install github.com/zeromicro/go-zero/tools/goctl@latest
docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 goctl --help
# 项目初始化
goctl api new greet
cd greet
go mod init github.com/jianboy/greet
go get -u github.com/zeromicro/go-zero
go mod tidy
go run greet.go -f etc/greet-api.yaml
go mod tidy
cd tools/goctl && go build -v goctl.go