Documentation ¶
Index ¶
- 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 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 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 ¶
This section is empty.
Functions ¶
func StringToDate ¶
StringToDate casts an empty interface to a time.Time.
func ToDuration ¶
func ToDurationE ¶
ToDurationE casts an empty interface to time.Duration.
func ToFloat64E ¶
ToFloat64E casts an empty interface to a float64.
func ToIntSlice ¶
func ToIntSlice(i interface{}) []int
func ToIntSliceE ¶
ToIntSliceE casts an empty interface to a []int.
func ToSliceE ¶
func ToSliceE(i interface{}) ([]interface{}, error)
ToSliceE casts an empty interface to a []interface{}.
func ToStringMap ¶
func ToStringMap(i interface{}) map[string]interface{}
func ToStringMapBool ¶
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 ¶
func ToStringMapStringE ¶
ToStringMapStringE casts an empty interface to a map[string]string.
func ToStringMapStringSlice ¶
func ToStringMapStringSliceE ¶
ToStringMapStringSliceE casts an empty interface to a map[string][]string.
func ToStringSlice ¶
func ToStringSlice(i interface{}) []string
func ToStringSliceE ¶
ToStringSliceE casts an empty interface to a []string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.