goctl api

Generate api related files

Subcommands

NameDescription
dartGenerate dart files for provided api in api file
docGenerate doc files
formatFormat api files
goGenerate go files for provided api in yaml file
javaGenerate java files for provided api in api file
ktGenerate kotlin code for provided api file
newFast create api service
pluginCustom file generator
tsGenerate ts files for provided api in api file
validateValidate api file

Options

NameDescription
--branch <branch>The branch of the remote repo, it does work with --remote
--home <home>The goctl home path of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
--o <o>Output a sample api file
--remote <remote>The remote git repo of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority The git repo directory must be consistent with the https://github.com/zeromicro/go-zero-template directory structure