Top 21 Go Code Generation Projects
-
Project mention: A simple and easy-to-use batch error implementation. | reddit.com/r/golang | 2022-06-27
-
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.
-
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.
-
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.
-
-
gnostic
A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
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.
-
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).
-
-
-
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-28You 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.
-
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.
-
-
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 -
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.
-
Project mention: Gofire: A command line interface generator tool for Go | news.ycombinator.com | 2021-10-26
-
-
-
carrier
🛠 A test fixtures replacement for Go, support struct and ent, inspired by factory_bot/factory_boy (by Yiling-J)
-
-
Go Code Generation related posts
- Copygen v0.4 can generate customized code based on types
- Copygen (v0.4) is a code generator that can generate customized code based on types.
- copygen: Generate type-to-type and field-to-field struct code without reflection or dependencies.
- Copygen: Type-Based Code Generator
- Copygen is a code generator that can generate ANY function based on types.
- Copygen (v0.3) is a code generator that can generate ANY function based on types.
- Where I was from May 26 to December 12
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 |
Are you hiring? Post a new remote job listing for free.