Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckJsonTags ¶
func CheckJsonTags(o interface{}) (errs []error)
CheckJSONTags checks that the json tags on a struct are present and in lower camel case format and reports violations as errors. The function will only produce meaningful results when a struct is passed in. It returns a nil empty slice when passed other types of values.
func Walk ¶
walk recursively returns a list of field names contained in a given type. For fields of interface type, it iterates a list of candidate types which fulfil the interface, passed in in imap. TODO: pkg/test/util/populate should be refactored to use an imap argument too.
Types ¶
This section is empty.
Source Files
¶
- structtags.go
- walk.go
Click to show internal directories.
Click to hide internal directories.