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. Learn more →
Top 14 Go Codegen Projects
-
Project mention: Config for production and mocking (db connections, http parsers etc) | reddit.com/r/golang | 2023-02-23
If you have such a complex and deep dependency graph, and you don't want to manually maintain it, you could use some DI library to handle that for you. Something like https://github.com/google/wire for small-medium size stuff, or https://github.com/uber-go/fx for larger scale, more enterprise projects.
-
Gqlgen if I need GraphQL
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
``` https://github.com/matryer/moq
-
An example of a Snowflake API request using Go. This example uses the Go standard library, so it doesn’t require additional dependencies; however, in production, you could use a library like shurcooL/graphql or Khan/genqlient for stronger typing.
-
vtprotobuf
A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2
-
Project mention: Generating OpenAPI 3.0 specs from code - what's working for me... | reddit.com/r/golang | 2023-03-17
For new projects, I can probably use https://github.com/pacedotdev/oto and stick with an RPC style, but I've got lots of REST services that include URL params and GET requests to document, hence writing this.
-
But also this project https://github.com/ogen-go/ogen It worth keeping an eye on.
-
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.
-
-
-
Github: https://github.com/shortlink-org/shortlink/tree/main/pkg/saga
-
Finally, I wrote a tool a while ago https://github.com/anqiansong/sqlgen,it can help developers quickly generate gorm,xorm,sqlx,bun,sql code gorm,xorm,sqlx,bun,sql code that supports generation from sql files and database links, for example check out https://github. com/anqiansong/sqlgen/tree/main/example, if it can help you, please give me a star.
-
A while ago I wrote a module which might be interesting for your use case. All it does is wrapping go-github and adding some generated handlers https://github.com/cbrgm/githubevents
-
Project mention: Gomarvin - generate custom boilerplate / controllers for REST servers | reddit.com/r/golang | 2022-07-17
Source -> https://github.com/tompston/gomarvin
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Codegen related posts
- Generating OpenAPI 3.0 specs from code - what's working for me...
- Config for production and mocking (db connections, http parsers etc)
- Is it just me or does nobody really know what idiomatic Go is.
- github API webhook reciever
- Modern API design with Golang, PostgreSQL and Docker.
- Should I use Ent?
- gomock giving me a hard time
-
A note from our sponsor - SonarLint
www.sonarlint.org | 27 Mar 2023
Index
What are some of the best open-source Codegen projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | wire | 10,324 |
2 | gqlgen | 8,743 |
3 | moq | 1,523 |
4 | genqlient | 788 |
5 | vtprotobuf | 624 |
6 | oto | 609 |
7 | ogen | 453 |
8 | interfaces | 371 |
9 | kyaml2go | 282 |
10 | shortlink | 67 |
11 | sqlgen | 58 |
12 | githubevents | 40 |
13 | gomarvin | 38 |
14 | revgen | 25 |