Go Code Generation

Open-source Go projects categorized as Code Generation

Top 23 Go Code Generation Projects

Code Generation
  1. go-zero

    A cloud-native Go microservices framework with cli tool for productivity.

    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...

  2. 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.

    Stream logo
  3. 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-06

    Recently, 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.

  4. 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.

  5. easyjson

    Fast JSON serializer for golang.

    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:

  6. go-recipes

    🦩 Tools for Go projects

  7. jennifer

    Jennifer is a code generator for Go

  8. avo

    Generate x86 Assembly with Go

    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.

  9. 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.

    InfluxDB logo
  10. gnostic

    A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.

  11. 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
  12. gen

    Type-driven code generation for Go (by clipperhouse)

  13. GoWrap

    GoWrap is a command line tool for generating decorators for Go interfaces

  14. webrpc

    webrpc is a schema-driven approach to writing backend services for modern Web apps and networks

  15. zek

    Generate a Go struct from XML.

  16. truss

    Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code. (by metaverse)

    Project mention: Parsing Protobuf Definitions with Tree-sitter | news.ycombinator.com | 2024-08-03

    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...

  17. goverter

    Generate type-safe Go converters by defining function signatures.

  18. go-jsonschema

    A tool to generate Go data types from JSON Schema definitions.

  19. enumer

    A Go tool to auto generate methods for your enums (by dmarkham)

    Project mention: Goenums: Type Safe Enum Generator for Go | news.ycombinator.com | 2025-04-26
  20. 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).

  21. openapi-go

    OpenAPI structures for Go

  22. apibrew

    APIBrew is Low code software to automate building CRUDs from yaml files

  23. charlatan

    Go Interface Mocking Tool

  24. kod

    A generics based dependency injection application framework for Go, supporting aspect oriented programming based on interceptors (by go-kod)

  25. toolkit

    Collection of useful patterns (by donutloop)

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Code Generation discussion

Log in or Post with

Go Code Generation related posts

  • API Testing Without the Hassle – My Experience Using Keploy for CI Integration

    2 projects | dev.to | 6 Jul 2025
  • My Keploy Testing Experience

    1 project | dev.to | 27 Jun 2025
  • From Manual Grind to AI Power: My Journey with Keploy API Testing

    1 project | dev.to | 27 Jun 2025
  • Recording API Calls on Chess.com and Keploy's Website — My Beginner API Testing Experience

    1 project | dev.to | 27 Jun 2025
  • Revolutionizing API Testing with AI: My Journey with Keploy

    1 project | dev.to | 27 Jun 2025
  • Keploy – Open-Source AI-Powered API, Integration, Unit Testing Agent Developers

    1 project | news.ycombinator.com | 8 May 2025
  • Open Source AI-Powered API, Integration, Unit Testing Agent for Developers

    1 project | news.ycombinator.com | 1 May 2025
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 15 Jul 2025
    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 →

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

Sponsored
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.
getstream.io