Awesome Go

Generators

17 libraries in this category

oapi-codegen

This package contains a set of utilities for generating Go boilerplate code for services based on OpenAPI 3.0 API definitions

8,677GeneratorsGenerators
go-linq

.NET LINQ-like query methods for Go

3,787GeneratorsGenerators
jennifer

Generate arbitrary Go code without templates

3,642GeneratorsGenerators
GoWrap

Generate decorators for Go interfaces using simple templates

1,342GeneratorsGenerators
goderive

Derives functions from input types

1,264GeneratorsGenerators
go-enum

Code generation for enums from code comments

963GeneratorsGenerators
goverter

Generate converters by defining an interface

889GeneratorsGenerators
interfaces

Command line tool for generating interface definitions

431GeneratorsGenerators
copygen

Generate any code based on Go types, including type-to-type converters (copy code) without reflection by default

406GeneratorsGenerators
apispec

Generate OpenAPI 3.1 specs from Go code without annotations, plus a browser UI to configure, preview, and explore the call graph

101GeneratorsGenerators
convergen

Feature rich type-to-type copy code generator

51GeneratorsGenerators
generis

Code generation tool providing generics, free-form macros, conditional compilation and HTML templating

47GeneratorsGenerators
go-apispec

Generate OpenAPI 3.1 specs from Go source code via static analysis with automatic framework detection

39GeneratorsGenerators
protoc-gen-httpgo

Generate HTTP server and client from protobuf

27GeneratorsGenerators
typeregistry

A library to create type dynamically

23GeneratorsGenerators
go-enum-encoding

Code generation for enum encoding from code comments

16GeneratorsGenerators
protoc-gen-mcp

Generate typed MCP tools, prompts, and resources from Protocol Buffers

7GeneratorsGenerators