The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 19 Go Codegen Projects
-
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.
-
vtprotobuf
A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2
-
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.
-
shortlink
Shortlink service (Microservice example) ⭐️ Star the repo if you like it! (by shortlink-org)
-
structuresmith
Validate, Diff, Render - A powerful tool designed to automate the generation of project files using customizable templates.
-
terraform-provider-hashicups
(Template, Clone this to get started) Terraform provider for Hashicups. (by speakeasy-sdks)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: Who moved my error codes? Adding error types to your GoLang GraphQL Server | dev.to | 2023-06-25GraphQL’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.
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
Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09https://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.
Project mention: GitHub - Warashi/compgen: Compgen is a gqlgen plugin designed to simplify the generation of ComplexityRoot for gqlgen. | /r/golang | 2023-06-01The 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
Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12
More details: - https://github.com/shortlink-org/shortlink/tree/main/ops/argocd - https://github.com/shortlink-org/shortlink/tree/main/ops/gitlab
Project mention: Show HN: Structuresmith – Generate Project Files and Templates for Consistency | news.ycombinator.com | 2023-12-10
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!
Go Codegen related posts
- Show HN: Structuresmith – Generate Project Files and Templates for Consistency
- vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works.
- GitHub - Warashi/compgen: Compgen is a gqlgen plugin designed to simplify the generation of ComplexityRoot for gqlgen.
- gut: convert golang structs to typescript interfaces
- Question about dependency initialization
- Generating OpenAPI 3.0 specs from code - what's working for me...
- Config for production and mocking (db connections, http parsers etc)
-
A note from our sponsor - WorkOS
workos.com | 26 Apr 2024
Index
What are some of the best open-source Codegen projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | wire | 12,291 |
2 | gqlgen | 9,613 |
3 | moq | 1,763 |
4 | ogen | 1,072 |
5 | genqlient | 980 |
6 | vtprotobuf | 812 |
7 | oto | 720 |
8 | shortlink | 672 |
9 | interfaces | 419 |
10 | kyaml2go | 286 |
11 | frugal | 139 |
12 | sqlgen | 77 |
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