Go Generate Tools

14 projects

gotestsby cweill

Generate Go tests from your source code.

github.com/cweill/gotestsGo 1.24+ 1 dependencyv1.9.0updated 1y ago

5.3k

xgenby xuri

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator.

github.com/xuri/xgenGo 1.25+ 2 dependenciesupdated 4d ago

426

hasgoby DylanMeeus

Generate Haskell inspired functions for your slices.

github.com/DylanMeeus/hasgoGo 1.13+ 2 dependencies2.0.0updated 5y ago

144

gocontractsby Parquery

Brings design-by-contract to Go by synchronizing the code with the documentation.

v1.3.0updated 7y ago

119

gonericsby bouk

Idiomatic Generics in Go.

updated 12y ago

112

options-genby kazhuravlev

Functional options described by Dave Cheney's post "Functional options for friendly APIs".

github.com/kazhuravlev/options-genGo 1.25+ 4 dependenciesupdated 23d ago

112

envdocby g4s8

Generate documentation for environment variables from Go source files.

github.com/g4s8/envdocGo 1.27+ 4 dependenciesv1.12.0updated 2d ago

100

gounitby hexdigest

Generate Go tests using your own templates.

updated 8y ago

87

sqlgenby anqiansong

Generate gorm, xorm, sqlx, bun, sql code from SQL file or DSN.

github.com/anqiansong/sqlgenGo 1.18+ 10 dependenciesv0.0.2updated 3y ago

87

genericby usk81

Flexible data type for Go.

github.com/usk81/generic/v2Go 1.12+ 1 dependencyv2.2.1updated 5y ago

49

godalby mafulong

Generate orm models corresponding to golang by specifying sql ddl file, which can be used by gorm.

github.com/mafulong/godalGo 1.16+ 7 dependenciesv1.5.6updated 2d ago

19

oapixconstgenby psyb0t

Generate typed Go constants from an OpenAPI spec's x-constants extension.

github.com/psyb0t/oapixconstgenGo 1.26+ 2 dependenciesv1.1.6updated 3mo ago

0
r

re2dfa

Transform regular expressions into finite state machines and output Go source code.

gitlab.com

TOML-to-Go

Translates TOML into a Go type in the browser instantly.

xuri.me

Esc

Type to search every entry. ↑↓ to move, Enter to open.