goderive
Derives and generates mundane golang functions that you do not want to maintain yourself (by awalterschulze)
jennifer
Jennifer is a code generator for Go (by dave)
Our great sponsors
goderive | jennifer | |
---|---|---|
3 | 6 | |
1,174 | 3,177 | |
- | - | |
2.8 | 3.7 | |
about 2 months ago | 8 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
goderive
Posts with mentions or reviews of goderive.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-10.
-
Do you generate Clone or Copy methods?
I found https://github.com/awalterschulze/goderive but haven't used anything like it besides mockgen
-
Why GoLang supports null references if they are billion dollar mistake?
Now, am I going to do the same with a library like goderive just so I can use FP techniques to get, amongst some other things, less nil checks? No. Probably not. If I wanted to use primarily FP techniques in my code, I would probably be using something else in the first place. Go isn't a great environment for guaranteeing immutability for starters, so anything like that is necessarily going to be an incomplete experience. And in the bargain, my code would, in my opinion at least, be less readable and maintainable.
- Derives mundane Golang functions that you do not want to maintain
jennifer
Posts with mentions or reviews of jennifer.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-11.
-
How to minimize RAM usage during Go binary compilation
We have a repo/library called fasten-sources which is made up of mostly generated code (using dave/jennifer)
-
Golang’s best-kept secret: ‘executable examples’
Check out my https://github.com/dave/rebecca package for a neat way of building readme docs by embedding Go docs and examples. It generates the readme for https://github.com/dave/jennifer (see https://github.com/dave/jennifer/blob/master/README.md.tpl).
-
Designing a config API for microservices applications built using Go
The design of the wrapper functions meant we couldn’t easily unmarshal the CUE value into the wrapper functions. This meant we needed to generate unmarshalled functions for the config types. We use the excellent Jennifer library by Dave (no really; github.com/dave/jennifer) for generating Go files.
-
Simple code generator tools to explore inner workings of?
I've used https://github.com/dave/jennifer in the past, and been very happy with it.
-
How to choose a golang template rending engine for my project?
If specifically for generating Go code, I would suggest you take a look at Jennifer.
-
Boilerplate for experienced devs
I just spent a few hours writing a crapload of boilerplate code generation code with jennifer, if that helps any.
What are some alternatives?
When comparing goderive and jennifer you can also consider the following projects:
go-enum - An enum generator for go
Anakin - Codegeneration tool for isomorphic server and mobile Go apps with gRPC & Protobuf. Share code between your backend, Android & iOS app! :sun_with_face:
goverter - Generate type-safe Go converters by simply defining an interface
gen - Type-driven code generation for Go
gotype - Golang source code parsing, usage like reflect package
go-linq - .NET LINQ capabilities in Go
go-xray - Helpers for making the use of reflection easier
efaceconv
GoWrap - GoWrap is a command line tool for generating decorators for Go interfaces
interfaces - Code generation tools for Go.
generis - Versatile Go code generator.