Documentation ¶
Index ¶
Constants ¶
View Source
const ErrStructPointerExpected errors.Msg = "expected a pointer to a struct"
Variables ¶
View Source
var ( MarshalTextType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem() UnmarshalTextType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem() TimeDurationType = reflect.TypeOf(time.Nanosecond) )
Functions ¶
func ParseAndSet ¶
ParseAndSet parses str according to the value's type and kind.
func TraverseStruct ¶
func TraverseStruct(v interface{}, h TraverseStructHandlerFunc) error
Types ¶
type UnsupportedError ¶
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.