Documentation ¶
Index ¶
- Variables
- func CleanupInterfaceArray(in []interface{}) []interface{}
- func CleanupInterfaceMap(in map[interface{}]interface{}) map[string]interface{}
- func CleanupMapValue(v interface{}) interface{}
- func ConvertKVStringSliceToMap(values []string) map[string]string
- func ConvertMapToKVStringSlice(values map[string]string) []string
- func ConvertMapValueToBool(m map[string]interface{}, key string) (bool, error)
- func ConvertMapValueToFloat64(m map[string]interface{}, key string) (float64, error)
- func ConvertMapValueToFloat64Slice(m map[string]interface{}, key string) ([]float64, error)
- func ConvertMapValueToInt(m map[string]interface{}, key string) (int, error)
- func ConvertMapValueToInt64(m map[string]interface{}, key string) (int64, error)
- func ConvertMapValueToInt64Slice(m map[string]interface{}, key string) ([]int64, error)
- func ConvertMapValueToIntSlice(m map[string]interface{}, key string) ([]int, error)
- func ConvertMapValueToJSONObject(m map[string]interface{}, key string, v interface{}) error
- func ConvertMapValueToObjectSlice(m map[string]interface{}, key string) ([]interface{}, error)
- func ConvertMapValueToString(m map[string]interface{}, key string) (string, error)
- func ConvertMapValueToStringSlice(m map[string]interface{}, key string) ([]string, error)
- func ConvertMapValueToTime(m map[string]interface{}, key string) (time.Time, error)
- func ConvertToString(v interface{}) (string, error)
- func InterfaceToMap(obj interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ERR_CONVERT_INVALID = errors.New("value convert invalid.")
)
Functions ¶
func CleanupInterfaceArray ¶
func CleanupInterfaceArray(in []interface{}) []interface{}
func CleanupInterfaceMap ¶
func CleanupInterfaceMap(in map[interface{}]interface{}) map[string]interface{}
func CleanupMapValue ¶
func CleanupMapValue(v interface{}) interface{}
func ConvertMapValueToBool ¶
func ConvertMapValueToInt ¶
func ConvertMapValueToInt64 ¶
func ConvertMapValueToString ¶
func ConvertMapValueToTime ¶
func ConvertToString ¶
func InterfaceToMap ¶
func InterfaceToMap(obj interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.