Registry / utility / oleiade-reflections

oleiade-reflections

JSON →
library1.1.0gogounverified

High-level abstractions over Go's reflect library for easy struct field and tag introspection.

go get github.com/oleiade/reflections
INSTALL
IMPORT
SIG · OLEIADE-REFLECTION
O
oleiade-reflections
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

reflections
github.com/oleiade/reflections

Get struct field value using reflections

package main import ( "fmt" "github.com/oleiade/reflections" ) type Example struct { Name string `json:"name"` } func main() { val, _ := reflections.GetField(&Example{Name: "test"}, "Name") fmt.Println(val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
oleiade-reflections — go get oleiade-reflections · libregistry