Go Code Generation

Open-source Go projects categorized as Code Generation

Top 23 Go Code Generation Projects

  • go-zero

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

  • goa

    🌟 Goa: Elevate Go API development! πŸš€ Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨

  • Project mention: IBM to Acquire HashiCorp, Inc | news.ycombinator.com | 2024-04-24

    My experience of Golang is that dependency injection doesn't really have much benefit. It felt like a square peg in a round hole exercise when my team considered it. The team was almost exclusively Java/Typescript Devs so it was something that we thought we needed but I don't believe we actually missed once we decided to not pursue it.

    If you are looking at OpenAPI in Golang I can recommend having a look at https://goa.design/. It's a DSL that generates OpenAPI specs and provides an implementation of the endpoints described. Can also generate gRPC from the same definitions.

    We found this removed the need to write almost all of the API layer and a lot of the associated validation. We found the generated code including the server element to be production ready from the get go.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • easyjson

    Fast JSON serializer for golang.

  • go-recipes

    🦩 Tools for Go projects

  • Project mention: 2023 update to go-recipes collection | /r/golang | 2023-12-11
  • keploy

    Test generation for Developers. Generate tests and stubs for your application that actually work!

  • Project mention: Getting Started with Keploy | dev.to | 2024-02-12

    October is the month of Open Source and Keploy is taking part in this celebration. You can contribute to several Keploy projects by participating in this year’s Hacktoberfest. You can both contribute to the code part and the no-code part as well. Here are some contributions that you can make!

  • jennifer

    Jennifer is a code generator for Go

  • Project mention: How to minimize RAM usage during Go binary compilation | /r/golang | 2023-07-11

    We have a repo/library called fasten-sources which is made up of mostly generated code (using dave/jennifer)

  • avo

    Generate x86 Assembly with Go

  • Project mention: From slow to SIMD: A Go optimization story | news.ycombinator.com | 2024-01-23

    I wonder whether avo could have been useful here?[1] I mention it because it came up the last time we were talking about AVX operations in go.[2]

    1 = https://github.com/mmcloughlin/avo

    2 = https://news.ycombinator.com/item?id=34465297

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • gnostic

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

  • gen

    Type-driven code generation for Go (by clipperhouse)

  • GoWrap

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

  • truss

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

  • 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: Bebop v3: a fast, modern replacement to Protocol Buffers | news.ycombinator.com | 2024-03-12
  • go-jsonschema

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

  • Project mention: Building a high performance JSON parser | news.ycombinator.com | 2023-11-05

    For json schema specifically there are some tools like go-jsonschema[1] but I've never used them personally. But you can use something like ffjson[2] in go to generate a static serialize/deserialize function based on a struct definition.

    [1] https://github.com/omissis/go-jsonschema

  • goverter

    Generate type-safe Go converters by simply defining an interface

  • enumer

    A Go tool to auto generate methods for your enums (by dmarkham)

  • Project mention: Go Enums Still Suck | news.ycombinator.com | 2024-03-28
  • 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.

  • apibrew

    APIBrew is Low code software to automate building CRUDs from yaml files

  • Project mention: API Brew – Low Code Declarative REST APIs | news.ycombinator.com | 2024-01-10
  • charlatan

    Go Interface Mocking Tool

  • openapi-go

    OpenAPI structures for Go

  • Project mention: Create Production-Ready SDKs with Goa | dev.to | 2023-11-22

    Swaggest OpenAPI structures for Go

  • toolkit

    Collection of useful patterns (by donutloop)

  • gofire

    Gofire πŸ”₯ Command Line Interface Generator tool for Go (by 1pkg)

  • dingo

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

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

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 27,600
2 goa 5,461
3 easyjson 4,348
4 go-recipes 3,807
5 keploy 3,316
6 jennifer 3,177
7 avo 2,590
8 gnostic 1,985
9 gen 1,432
10 GoWrap 886
11 truss 733
12 zek 728
13 webrpc 673
14 go-jsonschema 499
15 goverter 439
16 enumer 369
17 copygen 331
18 apibrew 219
19 charlatan 200
20 openapi-go 193
21 toolkit 158
22 gofire 109
23 dingo 94

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com