goctl
« Back to VersTracker
Description:
Generates server-side and client-side code for web and RPC services
Type: Formula  |  Latest Version: 1.9.2@0  |  Tracked Since: Dec 25, 2025
Links: Homepage  |  @zeromicro  |  formulae.brew.sh
Category: Developer tools
Tags: go microservices code-generation cli go-zero
Install: brew install goctl
About:
goctl is a powerful CLI tool designed for the go-zero framework that streamlines the development of microservices. It automatically generates boilerplate code for RESTful APIs and gRPC services, including handlers, logic, and configuration files. This significantly accelerates development by enforcing best practices and reducing manual coding effort.
Key Features:
  • Generates RESTful API code from simple api files
  • Generates gRPC protobuf code and go files
  • Automates model generation from database schemas
  • Supports quick deployment with k8s and docker
Use Cases:
  • Scaffolding a new high-performance microservice project
  • Generating CRUD handlers and logic for database models
  • Converting protobuf definitions to gRPC service code
Alternatives:
  • protobuf – Protobuf defines the wire format, while goctl generates the full application service layer code.
  • oapi-codegen – Generates code from OpenAPI specs; goctl uses its own api syntax tailored for the go-zero ecosystem.
Version History
Detected Version Rev Change Commit
Dec 25, 2025 6:08pm 1.9.2 0 VERSION_BUMP 3df3d82a
Sep 12, 2025 1:52pm 0 VERSION_BUMP 7ffbdb2a
Jan 2, 2025 5:01pm 0 VERSION_BUMP 182d30fe
Jan 1, 2025 4:58pm 0 VERSION_BUMP e0011b10
Sep 13, 2024 11:54am 0 VERSION_BUMP fbd95b08