Documentation ¶
Index ¶
- Variables
- func Decode(m interface{}, val interface{}) error
- func StringToDate(s string) (time.Time, error)
- func ToBool(i interface{}) bool
- func ToBoolE(i interface{}) (bool, error)
- func ToDuration(i interface{}) time.Duration
- func ToDurationE(i interface{}) (d time.Duration, err error)
- func ToFloat64(i interface{}) float64
- func ToFloat64E(i interface{}) (float64, error)
- func ToInt(i interface{}) int
- func ToInt64(i interface{}) int64
- func ToInt64E(i interface{}) (int64, error)
- func ToIntE(i interface{}) (int, error)
- func ToIntSlice(i interface{}) []int
- func ToIntSliceE(i interface{}) ([]int, error)
- func ToSlice(i interface{}) []interface{}
- func ToSliceE(i interface{}) ([]interface{}, error)
- func ToSliceStringMap(i interface{}) []map[string]interface{}
- func ToSliceStringMapE(i interface{}) ([]map[string]interface{}, error)
- func ToString(i interface{}) string
- func ToStringE(i interface{}) (string, error)
- func ToStringMap(i interface{}) map[string]interface{}
- func ToStringMapBool(i interface{}) map[string]bool
- func ToStringMapBoolE(i interface{}) (map[string]bool, error)
- func ToStringMapE(i interface{}) (map[string]interface{}, error)
- func ToStringMapString(i interface{}) map[string]string
- func ToStringMapStringE(i interface{}) (map[string]string, error)
- func ToStringMapStringSlice(i interface{}) map[string][]string
- func ToStringMapStringSliceE(i interface{}) (map[string][]string, error)
- func ToStringSlice(i interface{}) []string
- func ToStringSliceE(i interface{}) ([]string, error)
- func ToTime(i interface{}) time.Time
- func ToTimeE(i interface{}) (tim time.Time, err error)
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnaddressable unaddressable val ErrUnaddressable = errors.New("val must be addressable") // ErrNotPointer pinter val ErrNotPointer = errors.New("val must be a pointer") )
Functions ¶
func StringToDate ¶
StringToDate casts an empty interface to a time.Time.
func ToBool ¶
func ToBool(i interface{}) bool
ToBool casts an empty interface to bool ignoring error
func ToDuration ¶
ToDuration casts an empty interface to duration ignoring error
func ToDurationE ¶
ToDurationE casts an empty interface to time.Duration.
func ToFloat64 ¶
func ToFloat64(i interface{}) float64
ToFloat64 casts an empty interface to float64 ignoring error
func ToFloat64E ¶
ToFloat64E casts an empty interface to a float64.
func ToInt64 ¶
func ToInt64(i interface{}) int64
ToInt64 casts an empty interface to int64 ignoring error
func ToIntSlice ¶
func ToIntSlice(i interface{}) []int
ToIntSlice casts an empty interface to []int ignoring error
func ToIntSliceE ¶
ToIntSliceE casts an empty interface to a []int.
func ToSlice ¶
func ToSlice(i interface{}) []interface{}
ToSlice casts an empty interface []interface ignoring error
func ToSliceE ¶
func ToSliceE(i interface{}) ([]interface{}, error)
ToSliceE casts an empty interface to a []interface{}.
func ToSliceStringMap ¶
func ToSliceStringMap(i interface{}) []map[string]interface{}
ToSliceStringMap casts an empty interface to []map[string]interface{} ignoring error
func ToSliceStringMapE ¶
ToSliceStringMapE casts an empty interface to a []interface{}.
func ToString ¶
func ToString(i interface{}) string
ToString casts an empty interface to string ignoring error
func ToStringMap ¶
func ToStringMap(i interface{}) map[string]interface{}
ToStringMap casts an empty interface to string map ignoring error
func ToStringMapBool ¶
ToStringMapBool casts an empty interface to map[string]bool ignoring error
func ToStringMapBoolE ¶
ToStringMapBoolE casts an empty interface to a map[string]bool.
func ToStringMapE ¶
ToStringMapE casts an empty interface to a map[string]interface{}.
func ToStringMapString ¶
ToStringMapString casts an empty interface to map[string]string ignoring error
func ToStringMapStringE ¶
ToStringMapStringE casts an empty interface to a stringmap
func ToStringMapStringSlice ¶
ToStringMapStringSlice casts an empty interface to map[string][]string ignoring error
func ToStringMapStringSliceE ¶
ToStringMapStringSliceE cast an empty interface to a string array map
func ToStringSlice ¶
func ToStringSlice(i interface{}) []string
ToStringSlice casts an empty interface to []string ignoring error
func ToStringSliceE ¶
ToStringSliceE casts an empty interface to a []string.
Types ¶
This section is empty.