Versions in this module Expand all Collapse all v1 v1.0.1 Jul 7, 2021retracted Changes in this version + const StringSliceSep + func CaseInsensitiveNameIndexer(m map[string]interface{}, key string) (value interface{}, ok bool) + func ConverToBool(v interface{}) (bool, error) + func Convert(src interface{}, dst interface{}) error + func ConvertMapToMap(m interface{}, typ reflect.Type) (interface{}, error) + func ConvertMapToStruct(m map[string]interface{}, typ reflect.Type) (interface{}, error) + func ConvertSimpleToString(v interface{}) (string, error) + func ConvertSliceToSlice(src interface{}, dstSliceTyp reflect.Type) (interface{}, error) + func ConvertStringToPrimitive(v string, dstKind reflect.Kind) (interface{}, error) + func ConvertStringToSlice(v string, primitiveSliceType reflect.Type) (interface{}, error) + func ConvertStructToMap(v interface{}) (map[string]interface{}, error) + func ConvertStructToStruct(v interface{}, typ reflect.Type) (interface{}, error) + func ConvertType(v interface{}, typ reflect.Type) (interface{}, error) + func DefaultSplitString(v string) []string + func DefaultStringToTime(v string) (time.Time, error) + func DefaultTimeToString(t time.Time) (string, error) + func IsPrimitiveKind(k reflect.Kind) bool + func IsPrimitiveType(t reflect.Type) bool + func IsSimpleType(t reflect.Type) bool + type Conv struct + NameIndexer func(m map[string]interface{}, name string) (v interface{}, ok bool) + SplitString func(v string) []string + StringToTime func(v string) (time.Time, error) + TimeToString func(t time.Time) (string, error) + func (c Conv) ConverToBool(v interface{}) (bool, error) + func (c Conv) Convert(src interface{}, dst interface{}) error + func (c Conv) ConvertMapToMap(m interface{}, typ reflect.Type) (interface{}, error) + func (c Conv) ConvertMapToStruct(m map[string]interface{}, typ reflect.Type) (interface{}, error) + func (c Conv) ConvertSimpleToString(v interface{}) (string, error) + func (c Conv) ConvertSliceToSlice(src interface{}, dstSliceTyp reflect.Type) (interface{}, error) + func (c Conv) ConvertStringToPrimitive(v string, dstKind reflect.Kind) (interface{}, error) + func (c Conv) ConvertStringToSlice(v string, simpleSliceType reflect.Type) (interface{}, error) + func (c Conv) ConvertStructToMap(v interface{}) (map[string]interface{}, error) + func (c Conv) ConvertStructToStruct(v interface{}, typ reflect.Type) (interface{}, error) + func (c Conv) ConvertType(v interface{}, typ reflect.Type) (interface{}, error)