Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ConverterFunc ¶
ConverterFunc has logic on how to convert
type OptionFunc ¶
type OptionFunc func(*Cast)
OptionFunc define options
func WithTypes ¶
func WithTypes(types ...TypeFunc) OptionFunc
WithTypes packages everything in the cast
type TypeFunc ¶
type TypeFunc func() (reflect.Type, ConverterFunc)
TypeFunc returns reflect.Type and ConverterFunc to this type
func Type ¶
func Type(value interface{}, convert ConverterFunc) TypeFunc
Type creates a TypeFunc for this type
Click to show internal directories.
Click to hide internal directories.