Documentation
¶
Index ¶
- func ToBool(v any) bool
- func ToBoolE(v any) (bool, error)
- func ToDuration(v any) time.Duration
- func ToDurationE(v any) (time.Duration, error)
- func ToFloat64(v any) float64
- func ToFloat64E(v any) (float64, error)
- func ToInt(v any) int
- func ToInt64(v any) int64
- func ToInt64E(v any) (int64, error)
- func ToIntE(v any) (int, error)
- func ToString(v any) string
- func ToStringE(v any) (string, error)
- func ToStringMap(v any) map[string]any
- func ToStringMapString(v any) map[string]string
- func ToStringSlice(v any) []string
- func ToTime(v any) time.Time
- func ToTimeE(v any) (time.Time, error)
- func ToUint(v any) uint
- func ToUint64(v any) uint64
- func ToUint64E(v any) (uint64, error)
- func ToUintE(v any) (uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToStringMapString ¶
ToStringMapString 将任意值转为 map[string]string。
Types ¶
This section is empty.
Source Files
¶
- convert.go
Click to show internal directories.
Click to hide internal directories.