goverter
Generate type-safe Go converters by defining function signatures. (by jmattheis)
goderive
Derives and generates mundane golang functions that you do not want to maintain yourself (by awalterschulze)
goverter | goderive | |
---|---|---|
3 | 3 | |
706 | 1,260 | |
5.0% | 0.2% | |
7.6 | 6.5 | |
6 days ago | 4 months ago | |
Go | Go | |
MIT License | Apache License 2.0 |
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.
goverter
Posts with mentions or reviews of goverter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-28.
-
copygen: Generate type-to-type and field-to-field struct code without reflection or dependencies (391x faster than copier)
Cool! Have you seen https://github.com/jmattheis/goverter ? I'm curious as to the pros and cons between the two.
-
goverter: Generate type-safe Go converters by simply defining an interface.
Not directly, but you can define a custom implementation for the whole struct, see f.ex. https://github.com/jmattheis/goverter/blob/main/example/errors/input.go
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
What are some alternatives?
When comparing goverter and goderive you can also consider the following projects:
gotype - Golang source code parsing, usage like reflect package
typeregistry - create type dynamically in Golang
go-enum - An enum generator for go
generis - Versatile Go code generator.
GoWrap - GoWrap is a command line tool for generating decorators for Go interfaces