An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/jobstoit/strct

Package strct a simplified golang reflect package The struct package takes the complexety of golang reflecs away by giving you 2 functions to work with: the scanner and the parser. The scanner takes the object that needs to be scanned and a function that goes over each type property of the struct of the given object. The scanner function has 2 parameters: the reflect.Structfield which contains the data such as the property name and the property tags and contains a pointer to the reflect.Value which you than can either interface with or set a new value of. You can easaly set a new value using the Parser the parser takes the value that needs to be set as string (because its univerably accessable) and the reflect.Value pointer that needs to be set. Get the values you need using the scanner

Ecosystem
proxy.golang.org
Latest Release
v1.1.1
over 6 years ago
Versions
3
Dependent Packages
2
Dependent Repos
2
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/jobstoit/strct
spec
License MIT
Namespace github.com/jobstoit
First Release over 6 years ago
Last Synced 16 days ago
Keywords
go golang reflect
Repository
Stars 0 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Dependent packages Top 4.2%
Dependent repos Top 3.5%