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,619GeneratorsGenerators
go-linq

.NET LINQ-like query methods for Go

3,780GeneratorsGenerators
jennifer

Generate arbitrary Go code without templates

3,631GeneratorsGenerators
GoWrap

Generate decorators for Go interfaces using simple templates

1,339GeneratorsGenerators
goderive

Derives functions from input types

1,265GeneratorsGenerators
go-enum

Code generation for enums from code comments

961GeneratorsGenerators
goverter

Generate converters by defining an interface

886GeneratorsGenerators
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

95GeneratorsGenerators
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

26GeneratorsGenerators
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

5GeneratorsGenerators