InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Top 23 Go Code Generation Projects
-
Project mention: Show HN: Go-Zero Reaches 30k GitHub Stars a Milestone Worth Celebrating | news.ycombinator.com | 2025-03-03
It's already been fixed two years ago. Please check it here: https://github.com/zeromicro/go-zero/security/advisories/GHS...
-
Stream
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
-
keploy
Unit, API & Integration Testing Agent for Developers. Generate tests, mocks/stubs for your APIs that actually work!
Project mention: API Testing Without the Hassle – My Experience Using Keploy for CI Integration | dev.to | 2025-07-06Recently, while working on my personal-notes-api project, I explored Keploy, a tool that promised automated API test generation and CI/CD integration. I wasn’t sure what to expect—but it turned out to be the cleanest integration I’ve ever done.
-
goa
Design-first Go framework that generates API code, documentation, and clients. Define once in an elegant DSL, deploy as HTTP and gRPC services with zero drift between code and docs.
-
Project mention: Avoiding Boilerplate: Using Generics and Reflection for JSON Parsing in Go 1.18+ | dev.to | 2025-04-25
Tools like easyjson generate optimized parsing code:
-
-
-
Project mention: Go-attention: A full attention mechanism and transformer in pure Go | news.ycombinator.com | 2025-03-03
It depends on how long the time you spend in your c function is. cgo has a substantial overhead for calling. I tend to prefer just writing ASM functions for critical path code. You can use libraries like https://github.com/mmcloughlin/avo to make it easier to write/maintain.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
gnostic
A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
-
sponge
A powerful and easy-to-use Go development framework that enables you to effortlessly build stable, reliable, and high-performance backend services with a "low-code" approach.
Project mention: Show HN: Sponge – Low-code Go framework to generate APIs and cloud-ready service | news.ycombinator.com | 2025-07-14 -
-
-
webrpc
webrpc is a schema-driven approach to writing backend services for modern Web apps and networks
-
-
truss
Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code. (by metaverse)
I found that some parts of a protobuf aren't captured well by protoc; specifically annotations were not well exposed to Go libraries for writing protoc plugins in 2016. I ended up having to write my own basic protobuf parser to reliably extract annotations and comments for code and documentation generation:
https://github.com/metaverse/truss/blame/master/svcdef/svcde...
-
-
-
-
copygen
Copygen generates code based on Go types. Generate type-based code to copy values from type to type and fields from struct to struct by default (copier without reflection).
-
-
-
-
kod
A generics based dependency injection application framework for Go, supporting aspect oriented programming based on interceptors (by go-kod)
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Code Generation discussion
Go Code Generation related posts
-
API Testing Without the Hassle – My Experience Using Keploy for CI Integration
-
My Keploy Testing Experience
-
From Manual Grind to AI Power: My Journey with Keploy API Testing
-
Recording API Calls on Chess.com and Keploy's Website — My Beginner API Testing Experience
-
Revolutionizing API Testing with AI: My Journey with Keploy
-
Keploy – Open-Source AI-Powered API, Integration, Unit Testing Agent Developers
-
Open Source AI-Powered API, Integration, Unit Testing Agent for Developers
-
A note from our sponsor - InfluxDB
www.influxdata.com | 15 Jul 2025
Index
What are some of the best open-source Code Generation projects in Go? This list will help you:
# | Project | Stars |
---|---|---|
1 | go-zero | 31,388 |
2 | keploy | 10,286 |
3 | goa | 5,895 |
4 | easyjson | 4,756 |
5 | go-recipes | 4,361 |
6 | jennifer | 3,516 |
7 | avo | 2,845 |
8 | gnostic | 2,194 |
9 | sponge | 2,136 |
10 | gen | 1,427 |
11 | GoWrap | 1,229 |
12 | webrpc | 781 |
13 | zek | 770 |
14 | truss | 738 |
15 | goverter | 718 |
16 | go-jsonschema | 708 |
17 | enumer | 482 |
18 | copygen | 391 |
19 | openapi-go | 311 |
20 | apibrew | 249 |
21 | charlatan | 204 |
22 | kod | 186 |
23 | toolkit | 159 |