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
proxy.golang.org
v1.1.1
over 6 years ago
3
2
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 |
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |