Categories

Generators

Tools that generate Go code.

Repos

102

Stars

93,245

30 days

+316

dave

Jennifer is a code generator for Go

Created Dec 2016

code-generation code-generator go golang
Total 3,644
30 days +12
hexdigest

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

Created Sep 2018

code-generation decorators fallback go golang
Total 1,342
30 days +3
abice

An enum generator for go

Created Aug 2017

enum generated go golang
Total 963
30 days +2
jmattheis

Generate type-safe Go converters by defining function signatures.

Created Mar 2021

code-generation converter copy generator go
Total 893
30 days +3
rjeczalik

Code generation tools for Go.

Created Dec 2015

codegen golang golang-interface golang-package
Total 431
30 days +0
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
reedom

A type-to-type copy function code generator.

Created Sep 2022

code-generator ddd-patterns golang
Total 51
30 days +0
awalterschulze

Moved to https://git.awalterschulze.org/goderive

Created Feb 2017 Archived

deriving functional-programming generator generics golang
Total 1,266
30 days +1

More

grpc-ecosystem

gRPC to JSON proxy generator following the gRPC HTTP spec

Created Apr 2015

go grpc grpc-gateway openapi rest-api
Total 20,037
30 days +30
sqlc-dev

Generate type-safe code from SQL

Created Jun 2019

code-generator go kotlin mysql orm
Total 18,484
30 days +99
Melkeydev

Go-blueprint allows users to spin up a quick Go project using a popular framework

Created Oct 2023

Total 8,992
30 days +26
oapi-codegen

Generate Go client and server boilerplate from OpenAPI 3 specifications

Created Feb 2019

go golang openapi openapi-codegen openapi-generator
Total 8,677
30 days +49
xo
xo / dbtpl

Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server

Created Feb 2016

code-generator golang microsoft-sql-server mysql oracle
Total 3,900
30 days +1
ogen-go

OpenAPI v3 code generator for go

Created May 2021

api code-generator codegen go golang
Total 2,176
30 days +28
lileio

Easily generate gRPC services in Go ⚡️

Created Jan 2017

framework go grpc microservice prometheus
Total 1,494
30 days +2
smallnest

Converts a database into gorm structs and RESTful api

Created Mar 2018

database databases generator gorm rest
Total 1,435
30 days +1
clipperhouse

Type-driven code generation for Go

Created Oct 2013

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

WSDL2Go code generation as well as its SOAP proxy

Created Dec 2013

cli golang soap-client wsdl wsdl-to-go
Total 1,223
30 days +1
nytimes

A tool for generating Protobuf v3 schemas and gRPC service definitions from OpenAPI specifications

Created Apr 2016

Total 1,002
30 days +3
mna

Command pigeon generates parsers in Go from a PEG grammar.

Created Apr 2015

parser parser-generator peg
Total 921
30 days +1
pacedotdev

Go driven rpc code generation tool for right now.

Created Nov 2019

codegen golang javascript oto rpc
Total 880
30 days +2
omissis

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

Created Sep 2018

code-generation codegenerator go golang json
Total 812
30 days +2
infobloxopen

A protobuf compiler plugin designed to generate GORM models and APIs for simple object persistence tasks.

Created Mar 2018

Total 626
30 days +0
kubernetes

gengo library for code generation.

Created Aug 2016

Total 578
30 days +2
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
fiorix

Command line tool to generate Go code from WSDL for SOAP XML services

Created Mar 2016

Total 483
30 days +1
alvaroloes

A Go tool to auto generate methods for your enums

Created Dec 2015

Total 483
30 days +1
a-h

Generates Go (golang) Structs from JSON schema.

Created Jul 2016

Total 451
30 days +1
ysugimoto

A protoc plugin that generates graphql execution code from Protocol Buffers.

Created Jan 2020

golang graphql grpc protocol-buffers
Total 427
30 days +2
sunshinev

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

Created Apr 2020

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

Generate Go structs from multiple JSON or YAML objects.

Created May 2019

go golang json json-schema schema
Total 369
30 days +2
cloudspannerecosystem

yo is a command-line tool to generate Go code for Google Cloud Spanner.

Created Oct 2018

Total 339
30 days +1
sashabaranov

Generate CRUD gRPC backends from single YAML description.

Created Apr 2020

crud golang grpc postgresql
Total 314
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
mijia

ModelQ is a code generator for creating Golang codes/models to access RDBMS database/tables

Created Dec 2014

Total 289
30 days +0
cshum

Go binding generator for libvips image processing library

Created May 2025

gif golang heic jpeg jxl
Total 274
30 days +7
wicast

A small tool for Golang to generate Golang struct from a xml/json file

Created Nov 2015

Total 227
30 days +1
Xuanwo

General Golang Code Generator

Created Aug 2021

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

dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata

Created Jun 2016

db generator go postgresql sql
Total 190
30 days +0
hay-kot

A cookie cutter alternative with in-project scaffolding for generating components, controllers, or other common code patterns.

Created Feb 2023

scaffolding template templates
Total 183
30 days +0
goplus

Code generator for the Go language

Created Mar 2021

code-generator golang goplus stem-education
Total 172
30 days +1
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
mirzaakhena

Clean Architecture Code Generator and Framework

Created Sep 2020

architecture clean-architecture code-consistency code-generator code-structure
Total 155
30 days +0
devimteam

Tool to generate go-kit microservices

Created Apr 2017

generator go gokit
Total 152
30 days +0
kujtimiihoxha

Go-Kit Genetator

Created Apr 2017

cli generator go-kit golang kit-generator
Total 152
30 days +0
vikstrous

An implementation of Facebook's DataLoader in Go

Created Mar 2022

dataloader gqlgen graphql
Total 130
30 days +2
CrazyRocks

Golang 全自动生成业务框架,原来需要1天的事情,现在只需要1分钟

Created Dec 2019

Total 128
30 days +0
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
PrasadG193

Converts YAML specs into Go Lang type definitions

Created Jul 2019

convert-yaml-specs go golang yaml yaml-parser
Total 118
30 days +0
dizzyfool

Model generator for go-pg package

Created Dec 2018

codegen go-pg golang postresql
Total 117
30 days +0
contiamo

An opinionated OpenAPI v3 code generator for Go. Use this to generate API models and router scaffolding.

Created Nov 2020

code-generator golang openapi openapi-generator openapi-spec
Total 113
30 days +0
MohamedBassem

A code generation tool to generate a better querying API for gorm structs

Created Oct 2016

Total 105
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
ernesto-jimenez

A set of go packages and command line tools to generate Go code

Created Oct 2015

Total 94
30 days +0
ElegantSoft

generate crud rest api in go and gin in no time

Created Jun 2022

crud crud-generator generator gin go
Total 92
30 days +0
mattn

Echo scaffold is CLI to generate scaffolds for the echo framework.

Created Sep 2017

echo golang
Total 88
30 days +0
erizocosmico

Code generation tool for Go that generates common functions for iterable types such as map and filter for slices and channels.

Created Nov 2015

codegen go iterables
Total 86
30 days +0
Isted

Go (Golang) code and table generator for CRUD functionality

Created Jan 2015

Total 84
30 days +0
qingstor

A code generator for RESTful APIs.

Created Dec 2016

code-generator qingcloud qingstor snips
Total 82
30 days +0
otk-final

openapi(swagger)代码生成器

Created Apr 2025

openapi openapi-generator swagger swagger-codegen
Total 80
30 days +0
web-ridge

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler

Created Aug 2019

Total 76
30 days +0
aloder

Tool for golang that generates jennifer code

Created Feb 2019

Total 75
30 days +0
caibirdme

a cli tool for generating code based on gendry

Created Jan 2018

Total 70
30 days +0
nullstyle

Stupid, simple code generation tool for go

Created Jun 2015

Total 69
30 days +0
mohae

Generate Go structs from JSON with struct tags: can specify type name, package name, and additional field tag keys with the CLI app.

Created Nov 2015

Total 68
30 days +0
chenmingyong0423

go-optioner is a tool for generating functional options pattern in Go code. This tool can automatically generate corresponding options code based on the given struct definition.

Created Jul 2023

Total 67
30 days +0
gobuffalo

A framework for writing modular generators

Created Jul 2018

framework generator go gobuffalo golang
Total 64
30 days +0
hulklab

Yet another go scaffold

Created May 2019

Total 63
30 days +0
bufbuild

Protobuf plugins that generate various schemas from protobuf files - JSON Schema, PubSub, etc.

Created Mar 2024

buf-cli buf-schema-registry jsonschema protobuf protoc
Total 61
30 days +1
segmentio

Generate typed Golang RPC clients from server code

Created Apr 2017

paused
Total 61
30 days +0
opendoor

A database first code generator focused on postgres

Created Jan 2020

Total 60
30 days +0
tompston

Generate Go REST servers & http clients

Created Apr 2022

api boilerpate codegen echo gin
Total 58
30 days +0
fjl

Command gencodec generates marshaling methods for Go struct types.

Created Feb 2017

json unmarshaller yaml
Total 56
30 days +0
mukezhz

Generate Golang Project CLI

Created Nov 2023

cli generator gin go golang
Total 55
30 days +0
Autodesk

A toolkit to automatically generate software components: abstract API, implementation stubs and language bindings

Created Dec 2018

Total 55
30 days +1
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
liujianping

code generator for go, based on database schema. 基于数据库定义的代码生成器.

Created Jan 2016

Total 54
30 days +0
doordash-oss

Generate Go models from OpenAPI spec

Created Jan 2026

code-generator oapi-codegen openapi
Total 53
30 days +0
sunboyy

A code generator for MongoDB repository in Golang

Created Jan 2021

Total 51
30 days +0
gophersgang

Go repos for code generation

Created Mar 2017

code-generation go golang
Total 51
30 days +0
mas-bandwidth

Your constants, enums, flags, types and tables generated across multiple languages.

Created Aug 2026

Total 50
30 days +2
linuxdeepin

Formerly go-gir-generator

Created Dec 2015

Total 50
30 days +0
sasha-s

A tool to generate stub implementation of an interface (go).

Created Dec 2014

Total 50
30 days +0
ml444

Tools for generating code and checking code based on proto files. 根据proto文件生成代码和检查代码的工具。

Created Apr 2023

Total 49
30 days +0
wantedly

[MOVED TO NEW REPO] Golang RESTful API Server Generator

Created Jun 2016 Archived

Total 326
30 days +1
facebookarchive

A tool to generate Go struct types based on data in a Mongo collection.

Created Dec 2013 Archived

Total 154
30 days +0
ExperienceOne

Generates Golang client and server based on OpenAPI2 (swagger) definitions

Created Apr 2020 Archived

Total 147
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
masseelch

Extend https://entgo.io code generator and create fully working RESTful CRUD HTTP-handlers.

Created Nov 2020 Archived

Total 88
30 days +0
Azure

Extension for AutoRest (https://github.com/Azure/autorest) that generates Go code

Created Aug 2017 Archived

Total 79
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
google

A gnostic plugin that generates Go clients and servers for REST APIs

Created Mar 2019 Archived

Total 50
30 days +0

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