Documentation
¶
Index ¶
- func BoolToInt(v bool) (int64, error)
- func CheckInterfaceToMapInterface(i interface{}) (map[string]interface{}, error)
- func CheckMapKeyToBool(m map[string]interface{}, key string) (bool, error)
- func CheckMapKeyToInt(m map[string]interface{}, key string) (int, error)
- func CheckMapKeyToInt64(m map[string]interface{}, key string) (int64, error)
- func CheckMapKeyToInterfaceSlice(m map[string]interface{}, key string) ([]interface{}, error)
- func CheckMapKeyToMapInterface(m map[string]interface{}, key string) (map[string]interface{}, error)
- func CheckMapKeyToString(m map[string]interface{}, key string) (string, error)
- func Int64ToBool(v int64) bool
- func IntToBool(v int) bool
- func InterfaceToString(i interface{}) string
- func StringToInt(v string) (int, error)
- func StringToInt64(v string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInterfaceToMapInterface ¶
CheckInterfaceToMapInterface - Check whether the interface is map[string]interface{} type and return value
func CheckMapKeyToBool ¶
CheckMapKeyToBool - Check Map key whether is bool type and return value
func CheckMapKeyToInt ¶
CheckMapKeyToInt - Check whether the Map Key it int64 type and return value
func CheckMapKeyToInt64 ¶
CheckMapKeyToInt64 - Check whether the Map Key is int64 type and return value
func CheckMapKeyToInterfaceSlice ¶
CheckMapKeyToInterfaceSlice - Check whether the Map Key is []interface{} type and return value
func CheckMapKeyToMapInterface ¶
func CheckMapKeyToMapInterface(m map[string]interface{}, key string) (map[string]interface{}, error)
CheckMapKeyToMapInterface - Check whether the Map Key is map[string]interface{} type and return value
func CheckMapKeyToString ¶
CheckMapKeyToString - Check whether the Map key is string type and return value
func InterfaceToString ¶
func InterfaceToString(i interface{}) string
InterfaceToString - Convert value to string type
func StringToInt64 ¶
StringToInt64 - Convert string to type int64
Types ¶
This section is empty.