sheriff
Conditional marshalling for Go (by liip)
reflections
High level abstractions over the Go reflect library (by oleiade)
Our great sponsors
sheriff | reflections | |
---|---|---|
1 | 1 | |
239 | 503 | |
-0.8% | - | |
5.9 | 0.0 | |
about 2 months ago | over 1 year ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | 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.
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.
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 ?
What are some alternatives?
When comparing sheriff and reflections you can also consider the following projects:
enum - Type safe enums for Go without code generation or reflection
mapstructure - Go library for decoding generic map values into native Go structures and vice versa.
jettison - Highly configurable, fast JSON encoder for Go
valast - Convert Go values to their AST
jsmu - An abstraction for Go's encoding/json that abstracts 2-pass encoding into a single pass similar to encoding/gob.