Documentation
¶
Overview ¶
Package reflectz provides inspection of structs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Tag = "reflectz"
Tag is the name of struct tag used for reflectz directives "-" and "nodive" are the current tag options available
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// If Recursive is false Inspect will not dive embedded structs
// true by default
Recursive bool
// EmbeddedSep controls the separator between embedded structs
// underscore by default
EmbeddedSep string
// NamingScheme controls the naming convention of struct fields
// Options include snake_case, PascalCase or camelCase
// snake_case by default
NamingScheme NameType
// NamingTag controls the name of struct tag which should be used
// for field names, for example 'json'. If the tag is not present
// on a field, the name will fallback to the specified NamingScheme
NamingTag string
}
Click to show internal directories.
Click to hide internal directories.