goctl api
Generate api related files
Subcommands
Name | Description |
---|---|
dart | Generate dart files for provided api in api file |
doc | Generate doc files |
format | Format api files |
go | Generate go files for provided api in yaml file |
java | Generate java files for provided api in api file |
kt | Generate kotlin code for provided api file |
new | Fast create api service |
plugin | Custom file generator |
ts | Generate ts files for provided api in api file |
validate | Validate api file |
Options
Name | Description |
---|---|
--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 |