go-attr
Golang library to act on structure fields at runtime. Similar to Python getattr(), setattr(), hasattr() APIs. (by ssrathi)
reflections
High level abstractions over the Go reflect library (by oleiade)
go-attr | reflections | |
---|---|---|
1 | 1 | |
29 | 503 | |
- | - | |
4.9 | 0.0 | |
over 3 years ago | over 1 year ago | |
Go | Go | |
MIT 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.
go-attr
Posts with mentions or reviews of go-attr.
We have used some of these posts to build our list of alternatives
and similar projects.
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 go-attr and reflections you can also consider the following projects:
valast - Convert Go values to their AST
mapstructure - Go library for decoding generic map values into native Go structures and vice versa.
configuration - Library for setting values to structs' fields from env, flags, files or default tag
statsviz - 🚀 Visualise your Go program runtime metrics in real time in the browser
sheriff - Conditional marshalling for Go
wazero - wazero: the zero dependency WebAssembly runtime for Go developers
xreflect - A simple and user-friendly reflection utility library.