goctl
goctlA go-zero companion code generation tool that integrates Go HTTP, Go gRPC services, database model, k8s, Dockerfile and more.
A go-zero companion code generation tool that integrates Go HTTP, Go gRPC services, database model, k8s, Dockerfile and more.
Generate go-zero API code, Dockerfiles and MySQL models. The rpc, kube, template and migrate commands are left out.
goctl api goGenerate Go files for an .api file.
apidirstylepath--apipath--dirstring--homestring--remotestring--stylegoctl api formatFormat .api files in a directory.
dirpath--dirboolean--declareboolean--iuboolean--stdingoctl dockerGenerate a Dockerfile for a Go service.
gobaseporttzpath--gostring--basestring--portstring--tzstring--versionstring--homegoctl model mysql datasourceGenerate model code from a live MySQL data source.
urltabledircachestring--urlstring--table-tpath--dir-dboolean--cache-cstring--styleboolean--ideagoctl quickstartCreate and start a sample project.
service_typeenum--service-type-tmonomicrofigcompletionfigcompletionfigcompletionfigcompletionfigcompletionfigcompletionBefore it fills your prompt, Otty checks the installed goctl against its version. A form that does not match your version is not offered.