Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2021 Changes in this version + var ErrNotPointer = errors.New("val must be a pointer") + var ErrUnaddressable = errors.New("val must be addressable") + 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)