Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupportedType = errors.New("input is not a supported type") ErrNotStringKey = errors.New("key type is not string - not supported right now") )
View Source
var ( LowercaseKeyMapper KeyMapper = KeyMapperFunc(func(orig string) string { return strings.ToLower(orig) }) UppercaseKeyMapper KeyMapper = KeyMapperFunc(func(orig string) string { return strings.ToUpper(orig) }) CamelCaseKeyMapper = genericFirstKeyMapper(unicode.ToLower) PascalCaseKeyMapper = genericFirstKeyMapper(unicode.ToUpper) )
Functions ¶
func WithMapper ¶
func WithMapper(mapper KeyMapper) optionFunc
func WithRandomSeed ¶
func WithRandomSeed(i int64) optionFunc
func WithTagName ¶
func WithTagName(tag string) optionFunc
Types ¶
type KeyMapperFunc ¶
func (KeyMapperFunc) MapKey ¶
func (f KeyMapperFunc) MapKey(orig string) string
Click to show internal directories.
Click to hide internal directories.