conv

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(v bool) (int64, error)

BoolToInt - Convert bool value to type int

func CheckInterfaceToMapInterface

func CheckInterfaceToMapInterface(i interface{}) (map[string]interface{}, error)

CheckInterfaceToMapInterface - Check whether the interface is map[string]interface{} type and return value

func CheckMapKeyToBool

func CheckMapKeyToBool(m map[string]interface{}, key string) (bool, error)

CheckMapKeyToBool - Check Map key whether is bool type and return value

func CheckMapKeyToInt

func CheckMapKeyToInt(m map[string]interface{}, key string) (int, error)

CheckMapKeyToInt - Check whether the Map Key it int64 type and return value

func CheckMapKeyToInt64

func CheckMapKeyToInt64(m map[string]interface{}, key string) (int64, error)

CheckMapKeyToInt64 - Check whether the Map Key is int64 type and return value

func CheckMapKeyToInterfaceSlice

func CheckMapKeyToInterfaceSlice(m map[string]interface{}, key string) ([]interface{}, error)

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

func CheckMapKeyToString(m map[string]interface{}, key string) (string, error)

CheckMapKeyToString - Check whether the Map key is string type and return value

func Int64ToBool

func Int64ToBool(v int64) bool

Int64ToBool - Convert Int64 to type bool

func IntToBool

func IntToBool(v int) bool

IntToBool - Convert Int to type bool

func InterfaceToString

func InterfaceToString(i interface{}) string

InterfaceToString - Convert value to string type

func StringToInt

func StringToInt(v string) (int, error)

StringToInt - Convert string to type int

func StringToInt64

func StringToInt64(v string) (int64, error)

StringToInt64 - Convert string to type int64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL