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.
GOCTL_HOME, GOCTL_CACHE, GOCTL_OS, GOCTL_ARCH, GOCTL_VERSION, PROTOC_VERSION, PROTOC_GEN_GO_VERSION, PROTO_GEN_GO_GRPC_VERSIONGOCTL_OS=darwinmachine-localGOCTL_ARCH=arm64machine-localGOCTL_HOME=/Users/octocat/.goctlmachine-localGOCTL_DEBUG=FalseGOCTL_CACHE=/Users/octocat/.goctl/cachemachine-localGOCTL_EXPERIMENTAL=onGOCTL_VERSION=1.8.6machine-localPROTOC_VERSION=3.19.4machine-localPROTOC_GEN_GO_VERSION=v1.28.1machine-localPROTO_GEN_GO_GRPC_VERSION=1.2.0machine-localOtty splits these out before upload and puts each machine’s own back on the way down — no templates to write. The lines above come from this tool’s test fixture in the catalog.
Not a subtraction from the paths above: this is everything else goctl writes in your home directory that is state, not configuration. It keeps a whole-home manager like chezmoi from sweeping those up, and it still holds if the synced paths are ever widened.
GOCTL_HOMEGOCTL_CACHEGOCTL_OSGOCTL_ARCHGOCTL_VERSIONPROTOC_VERSIONPROTOC_GEN_GO_VERSIONPROTO_GEN_GO_GRPC_VERSIONGOCTL_OS=darwinmachine-localGOCTL_ARCH=arm64machine-localGOCTL_HOME=/Users/octocat/.goctlmachine-localGOCTL_DEBUG=FalseGOCTL_CACHE=/Users/octocat/.goctl/cachemachine-localGOCTL_EXPERIMENTAL=onGOCTL_VERSION=1.8.6machine-localPROTOC_VERSION=3.19.4machine-localPROTOC_GEN_GO_VERSION=v1.28.1machine-localPROTO_GEN_GO_GRPC_VERSION=1.2.0machine-localEach machine keeps its own copy of these.
Only what the catalog names. A directory that syncs brings everything inside it except what is listed as excluded here.
Opens otty://sync/add/goctl. Otty ships with this catalog, so the link only has to name the tool — nothing is downloaded.
Every one of these is generated from the same rules as this page. None of them splits GOCTL_HOME and GOCTL_CACHE for you — that part is Otty’s own sync, or a template you write by hand.