1.简介
goctl是go-zero框架的一个工具集
github:https://github.com/zeromicro/go-zero
安装:
# Go 1.15 及之前版本
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero/tools/goctl@latest
# Go 1.16 及以后版本
GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest
查看版本:goctl -v
查看功能简介:goctl --help
NAME:
goctl - a cli tool to generate code
USAGE:
goctl [global options] command [command options] [arguments...]
VERSION:
1.3.3 darwin/arm64
COMMANDS:
bug report a bug
upgrade upgrade goctl to latest version
env check or edit goctl environment
migrate migrate from tal-tech to zeromicro # 1.2及之前的的仓库为tal-tech,新仓库为zeromicro
api