Go Codegen

Open-source Go projects categorized as Codegen

Top 19 Go Codegen Projects

  • wire

    Compile-time Dependency Injection for Go

  • Project mention: Injeção de dependência em Go | dev.to | 2024-02-28
  • gqlgen

    go generate based graphql server library

  • Project mention: Who moved my error codes? Adding error types to your GoLang GraphQL Server | dev.to | 2023-06-25

    GraphQL’s spec, as it turns out, does not specify how servers should handle internal errors at all, leaving it entirely to the choice of the frameworks’ creators. Take for example our GoLang GraphQL framework of choice - gqlgen. It makes no distinction between intentional and unexpected errors: all errors are returned as-is to the client within the error message. Internal errors, which often contain sensitive information like network details and internal URIs, would leak to clients easily if not caught manually by the programmer.

  • 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
  • moq

    Interface mocking tool for go generate (by matryer)

  • Project mention: vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works. | /r/golang | 2023-07-11
  • ogen

    OpenAPI v3 code generator for go

  • Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09

    https://github.com/ogen-go/ogen

    Write openapi definition, it'll do routing, definition of structs, validation of JSON schemas, etc.

    All I need to do is implement the service.

    Validating an integer range for a querystring parameter is just too boring. And too easy to mistype when writing it manually.

    Anyways, so far only been playing, so haven't found the bad parts yet.

  • genqlient

    a truly type-safe Go GraphQL client

  • Project mention: GitHub - Warashi/compgen: Compgen is a gqlgen plugin designed to simplify the generation of ComplexityRoot for gqlgen. | /r/golang | 2023-06-01

    The client support in particular is currently very awkward. For instance, there's this discussion around Hasura in the Khan/genqlient repo: https://github.com/Khan/genqlient/issues/272

  • vtprotobuf

    A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2

  • oto

    Go driven rpc code generation tool for right now. (by pacedotdev)

  • Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12
  • 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
  • Project mention: Setting up ArgoCD from scratch | /r/ArgoCD | 2023-05-23

    More details: - https://github.com/shortlink-org/shortlink/tree/main/ops/argocd - https://github.com/shortlink-org/shortlink/tree/main/ops/gitlab

  • interfaces

    Code generation tools for Go. (by rjeczalik)

  • kyaml2go

    K8s Go client code generator from Kubernetes resource yamls

  • frugal

    Thrift improved (by Workiva)

  • sqlgen

    A tool to generate bun, gorm, sql, sqlx and xorm sql code. (by kesonan)

  • githubevents

    GitHub webhook events toolset for Go :rocket:

  • gut

    Convert Golang structs to Typescript interfaces (by tompston)

  • Project mention: gut: convert golang structs to typescript interfaces | /r/golang | 2023-05-29
  • options-gen

    Codegen for functional options in go projects

  • gomarvin

    Generate Go REST servers with custom endpoints & typescript fetch clients

  • revgen

    Speed up go:generate by auto detecting code changes

  • structuresmith

    Validate, Diff, Render - A powerful tool designed to automate the generation of project files using customizable templates.

  • Project mention: Show HN: Structuresmith – Generate Project Files and Templates for Consistency | news.ycombinator.com | 2023-12-10
  • terraform-provider-hashicups

    (Template, Clone this to get started) Terraform provider for Hashicups. (by speakeasy-sdks)

  • Project mention: Show HN: OpenAPI to Terraform Provider Code Generation | news.ycombinator.com | 2023-10-08

    - Explore a toy example: https://github.com/speakeasy-sdks/terraform-provider-hashicu...

    A massive thanks to our early adopters and the vibrant Terraform community for guiding our journey.

    HN, we’re eager for your insights. Whether it’s rigorous feedback, burning queries, or just wanting to geek out over Terraform and APIs, hit us up!

  • 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). The latest post mention was on 2024-02-28.

Go Codegen related posts

Index

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

Project Stars
1 wire 12,261
2 gqlgen 9,613
3 moq 1,763
4 ogen 1,064
5 genqlient 980
6 vtprotobuf 809
7 oto 719
8 shortlink 672
9 interfaces 418
10 kyaml2go 286
11 frugal 139
12 sqlgen 76
13 githubevents 65
14 gut 63
15 options-gen 56
16 gomarvin 54
17 revgen 43
18 structuresmith 29
19 terraform-provider-hashicups 3

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