Go Code Generation

Open-source Go projects categorized as Code Generation Edit details

Top 21 Go Code Generation Projects

  • go-zero

    A cloud-native Go microservices framework with cli tool for productivity.

    Project mention: A simple and easy-to-use batch error implementation. | reddit.com/r/golang | 2022-06-27
  • goa

    Design-based APIs and microservices in Go

    Project mention: Is it possible to write a well-typed controller/handler in Go? | reddit.com/r/golang | 2022-06-30

    Have you looked at Goa? https://github.com/goadesign/goa

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • easyjson

    Fast JSON serializer for golang.

    Project mention: Using a json lib other than encoding/json | reddit.com/r/golang | 2022-03-23

    There is https://github.com/mailru/easyjson out there if you are absolutely sure that serialization is the bottleneck. Otherwise I'd go for stdlib.

  • jennifer

    Jennifer is a code generator for Go

    Project mention: How to choose a golang template rending engine for my project? | reddit.com/r/golang | 2022-01-20

    If specifically for generating Go code, I would suggest you take a look at Jennifer.

  • avo

    Generate x86 Assembly with Go

  • gnostic

    A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.

    Project mention: gRPC gateway vs oapi-codegen etc. | reddit.com/r/grpc | 2022-04-14

    The tool for generating OpenAPI docs from a proto definition is gnostic (https://github.com/google/gnostic). But see the comments in this issue about conversion the other way (from OpenAPI to proto): https://github.com/google/gnostic/issues/162

  • truss

    Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • colfer

    binary serialization format

    Project mention: What type of software do you write at your workplace? | reddit.com/r/golang | 2022-01-17

    https://github.com/pascaldekloe/colfer high-perf binary sesialization format (for internal on-disk data storage).

  • GoWrap

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

  • zek

    Generate a Go struct from XML.

  • webrpc

    webrpc is a schema-driven approach to writing backend services for modern Web apps and networks

    Project mention: [Hiring] Remote Golang job: Senior Backend Engineer (Go) at Horizon (Toronto, Canada) | reddit.com/r/jobbit | 2022-05-28

    You will be joining the expert Go team at Horizon, previously who in our spare time + for fun, authored OSS projects like chi (https://github.com/go-chi/chi), upper/db (https://github.com/upper/db), webrpc (https://github.com/webrpc/webrpc), goware (https://github.com/goware), and much more. Our Go codebases are extremely clean and the patterns we've built have been shaped over 7 years of writing production Go systems and open source projects. These are the patterns which we apply to our infrastructure at Horizon in our products Skyweaver and Sequence.

  • enumer

    A Go tool to auto generate methods for your enums

    Project mention: Safer Enums in Go | news.ycombinator.com | 2022-05-14

    We tried out struct-based enums like this for a while and they're definitely better than the vanilla version, but they still have the problem of "how do you iterate over all the values?" and "how do you create an enum value from a string?". We chanced upon https://github.com/dmarkham/enumer a few months ago and have been very happy so far.

  • toolkit

    Collection of useful patterns (by donutloop)

  • copygen

    Go generator to copy values from type to type and fields from struct to struct (copier without reflection). Generate any code based on types.

    Project mention: Copygen v0.4 can generate customized code based on types | news.ycombinator.com | 2022-06-27
  • goverter

    Generate type-safe Go converters by simply defining an interface

    Project mention: copygen: Generate type-to-type and field-to-field struct code without reflection or dependencies (391x faster than copier) | reddit.com/r/golang | 2021-09-28

    Cool! Have you seen https://github.com/jmattheis/goverter ? I'm curious as to the pros and cons between the two.

  • gofire

    Gofire 🔥 Command Line Interface Generator tool for Go (by 1pkg)

    Project mention: Gofire: A command line interface generator tool for Go | news.ycombinator.com | 2021-10-26
  • dingo

    Generated dependency injection containers in go (golang) (by sarulabs)

    Project mention: Go docs are painful | reddit.com/r/golang | 2022-06-20
  • templify

    A tool to be used with 'go generate' to embed external template files into Go code.

  • carrier

    🛠 A test fixtures replacement for Go, support struct and ent, inspired by factory_bot/factory_boy (by Yiling-J)

    Project mention: carrier - A Test Fixtures Replacement for Go | reddit.com/r/golang | 2021-12-03
  • go-mocky

    Type safe mock generator in Go

    Project mention: Show HN: Simple Go mocks without interface{}s | news.ycombinator.com | 2022-05-27
  • goat

    Easily generate golang source from templates. (by fluhus)

    Project mention: go:generate using go templates | reddit.com/r/golang | 2021-09-08
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-06-30.

Go Code Generation related posts

Index

What are some of the best open-source Code Generation projects in Go? This list will help you:

Project Stars
1 go-zero 18,729
2 goa 4,733
3 easyjson 3,787
4 jennifer 2,458
5 avo 2,017
6 gnostic 1,423
7 truss 691
8 colfer 667
9 GoWrap 612
10 zek 569
11 webrpc 455
12 enumer 169
13 toolkit 146
14 copygen 146
15 goverter 125
16 gofire 107
17 dingo 83
18 templify 27
19 carrier 6
20 go-mocky 5
21 goat 0
Find remote jobs at our new job board 99remotejobs.com. There are 2 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com