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.

  2. SaaSHub

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

    SaaSHub logo
  3. keploy

    Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

    Project mention: AI Regression Testing Tools for APIs: What the AI Actually Does | dev.to | 2026-11-03

    Keploy

  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.

    Project mention: DSLs Enable Reliable Use of LLMs | news.ycombinator.com | 2026-07-15

    Anecdotal, but I have built from scratch a fairly large OpenAPI-compliant service using the Goa dsl (https://goa.design) and a coding agent and I've suspected for a while that the reason I've been as productive as I have with few blind alleys is that Goa kept the mistake surface pretty constrained. I also like not having the model generate boilerplate, as Goa's tooling does all that so much more cheaply. YMMV.

  5. easyjson

    Fast JSON serializer for golang.

    Project mention: Mastering Go profiling | dev.to | 2025-11-17

    and reflect.Value.Interface takes 40% of CPU time. That's a clear indicator of slow reflection-based serialization - replace with faster encoder like jsoniter or easyjson.

  6. go-recipes

    🦩 Tools for Go projects

  7. jennifer

    Jennifer is a code generator for Go

  8. avo

    Generate x86 Assembly with Go

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

  10. gnostic

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

  11. gen

    Type-driven code generation for Go (by clipperhouse)

  12. GoWrap

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

  13. SWE-AF

    Autonomous software engineering fleet of AI agents for production-grade PRs on AgentField: plan, code, test, and ship.

    Project mention: SWE-AF คืออะไร? ทีม AI ที่ทำงานเหมือนบริษัทซอฟต์แวร์ และใครควรถือสิทธิ์ merge โค้ด? | dev.to | 2026-10-26

    [1] Dan Kornas (25 ต.ค. 2026) · โพสต์แนะนำ SWE-AF. https://x.com/DanKornas/status/2114144009329271026 [2] Agent-Field (2026) · SWE-AF: Autonomous Engineering Team Runtime. https://github.com/Agent-Field/SWE-AF [3] Agent-Field (2026) · AgentField: The AI Backend. https://github.com/Agent-Field/agentfield [4] Agent-Field (2026) · Pull request #179: Add DID registration and VC generation for audit trails (README เรียกสั้นว่า Go SDK DID/VC Registration). https://github.com/Agent-Field/agentfield/pull/179

  14. goverter

    Generate type-safe Go converters by defining function signatures.

  15. webrpc

    webrpc is a schema-driven approach to writing apis with code generation of full client libraries in many languages

  16. zek

    Generate a Go struct from XML.

  17. go-jsonschema

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

  18. truss

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

  19. enumer

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

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

    Go Interface Mocking Tool

  23. examples

    Examples for goa showing specific capabilities (by goadesign)

  24. kod

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

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

  • AI Regression Testing Tools for APIs: What the AI Actually Does

    1 project | dev.to | 3 Nov 2026
  • Bounding CI Cost Without Weakening Trust in Keploy Pull Requests

    1 project | dev.to | 29 Oct 2026
  • I followed Keploy's quickstart as a first-time user. Here's where it broke.

    2 projects | dev.to | 26 Oct 2026
  • Know About Record And Replay Testing

    1 project | dev.to | 26 Oct 2026
  • Keploy – an open-source API and integration testing tool

    1 project | news.ycombinator.com | 25 Oct 2026
  • 10 Best Service Virtualization Tools Compared By Use Case

    1 project | dev.to | 12 Oct 2026
  • Flaky Test Guide: Causes, Examples, And Fixes

    1 project | dev.to | 7 Oct 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Nov 2026
    SaaSHub helps you find the best software and product alternatives 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 33,427
2 keploy 19,777
3 goa 6,123
4 easyjson 4,920
5 go-recipes 4,810
6 jennifer 3,628
7 avo 2,997
8 sponge 2,869
9 gnostic 2,310
10 gen 1,423
11 GoWrap 1,341
12 SWE-AF 1,126
13 goverter 889
14 webrpc 833
15 zek 822
16 go-jsonschema 812
17 truss 739
18 enumer 525
19 copygen 406
20 openapi-go 362
21 charlatan 205
22 examples 204
23 kod 199

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com