Categories

Generators

Tools that generate Go code.

Repos

102

Stars

93,231

30 days

+302

dave

Jennifer is a code generator for Go

Created Dec 2016

code-generation code-generator go golang
Total 3,643
30 days +11
hexdigest

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

Created Sep 2018

code-generation decorators fallback go golang
Total 1,341
30 days +2
jmattheis

Generate type-safe Go converters by defining function signatures.

Created Mar 2021

code-generation converter copy generator go
Total 892
30 days +2
switchupcb

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

Created Sep 2021

code-generation code-generator copy generator go
Total 408
30 days +1
ehabterra

Generate OpenAPI 3.1 (Swagger) specs from Go source code — no annotations. Static analysis and call-graph tracing infer routes, params, request/response schemas for Gin, Echo, Chi, Fiber, Gorilla Mux and net/http. Deterministic YAML/JSON output for CI, plus a web UI and call-graph diagram.

Created Jun 2025

api-documentation apispec call-graph chi code-first
Total 99
30 days +4

More

clipperhouse

Type-driven code generation for Go

Created Oct 2013

code-generation generics go
Total 1,423
30 days +0
omissis

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

Created Sep 2018

code-generation codegenerator go golang json
Total 811
30 days +1
dmarkham

A Go tool to auto generate methods for your enums

Created Apr 2019

code-generation codegeneration codegenerator enum enums
Total 526
30 days +3
sunshinev

【Go-sword】可视化CRUD管理后台生成工具

Created Apr 2020

code-generation gii go golang golang-package
Total 425
30 days +1
sazardev

Goca is a powerful CLI code generator for Go that helps you create Clean Architecture projects following best practices.

Created Jul 2025

clean-architecture cli cli-app code-generation go
Total 313
30 days +9
Xuanwo

General Golang Code Generator

Created Aug 2021

code-generation codegen golang-library
Total 199
30 days +0
lerenn

An AsyncAPI Golang Code generator that generates all Go code from the broker to the application/user. Just plug your application to your favorite message broker!

Created Feb 2023

asyncapi asyncapi-generator asyncapi-tooling asyncapi-tools code-generation
Total 164
30 days +1
SebastienMelki

Comprehensive Go protobuf toolkit for building type-safe HTTP APIs with automatic validation, OpenAPI docs, and low number of dependencies

Created Aug 2025

api-documentation api-generator buf code-generation developer-tools
Total 123
30 days +0
moznion

gowrtr is a library that supports golang code generation

Created Jan 2019

code-generation go golang
Total 122
30 days +0
moznion

A command-line tool to generate a constructor for the struct.

Created Dec 2019

code-generation golang
Total 96
30 days +0
Fanatics

Plugin-driven CLI utility for code generation using Go source as IDL

Created Nov 2018

ast cli code-generation golang plugins
Total 54
30 days +0
gophersgang

Go repos for code generation

Created Mar 2017

code-generation go golang
Total 51
30 days +0
dpolansky

A Go package for generating Go code

Created Aug 2016 Archived

code-generation
Total 134
30 days +0
workshop-depot

Generic Code for Go

Created Nov 2017 Archived

code-generation code-generator generic generic-types generics
Total 92
30 days +0
jbowes

Idiomatic Go (Golang) client package generation from OpenAPI documents

Created Oct 2017 Archived

code-generation code-generator go golang openapi
Total 52
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.