reflections
High level abstractions over the Go reflect library (by oleiade)
sheriff
Conditional marshalling for Go (by liip)
reflections | sheriff | |
---|---|---|
1 | 1 | |
503 | 239 | |
- | 0.0% | |
0.0 | 5.9 | |
over 1 year ago | 2 months ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" 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.
reflections
Posts with mentions or reviews of reflections.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-30.
-
REST api - returning a field by name from a struct
What the most efficient & idiomatic way to do this ? Is there an existing package that can do this directly ? what about https://github.com/oleiade/reflections, anyone using it ?
sheriff
Posts with mentions or reviews of sheriff.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Best way to deal with partially filled structs
You could use this library https://github.com/liip/sheriff to achieve it through groups.
What are some alternatives?
When comparing reflections and sheriff you can also consider the following projects:
mapstructure - Go library for decoding generic map values into native Go structures and vice versa.
enum - Type safe enums for Go without code generation or reflection
valast - Convert Go values to their AST
jettison - Highly configurable, fast JSON encoder for Go
jsmu - An abstraction for Go's encoding/json that abstracts 2-pass encoding into a single pass similar to encoding/gob.