Documentation ¶
Index ¶
- func ArrIntToArrString(arrInt []int) []string
- func JsonToArrayOfInterface(jsonData []byte) (result []interface{})
- func JsonToMapStrInterface(jsonData []byte) (result map[string]interface{})
- func ToArrayOfInt(v interface{}) (result []int)
- func ToArrayOfInt32(v interface{}) (result []int32)
- func ToArrayOfInt64(v interface{}) (result []int64)
- func ToArrayOfString(value interface{}) (result []string)
- func ToBool(value interface{}) (result bool)
- func ToInt(value interface{}) (result int)
- func ToInt16(value interface{}) (result int16)
- func ToInt32(value interface{}) (result int32)
- func ToInt64(value interface{}) (result int64)
- func ToJson(data interface{}) (jsonData []byte)
- func ToJsonString(data interface{}) (jsonString string)
- func ToString(value interface{}) (result string)
- func ToTime(value interface{}, parseFormat string) (result time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrIntToArrString ¶
ArrIntToArrString converts an array of integers to an array of strings.
func JsonToArrayOfInterface ¶ added in v1.0.1
func JsonToArrayOfInterface(jsonData []byte) (result []interface{})
JsonToArrayOfInterface convert json to []interface{}
func JsonToMapStrInterface ¶ added in v1.0.1
JsonToMapStrInterface convert json to map[string]interface{}
func ToArrayOfInt ¶
func ToArrayOfInt(v interface{}) (result []int)
ToArrayOfInt convert any value to []int
func ToArrayOfInt32 ¶
func ToArrayOfInt32(v interface{}) (result []int32)
ToArrayOfInt32 convert any value to []int32
func ToArrayOfInt64 ¶
func ToArrayOfInt64(v interface{}) (result []int64)
ToArrayOfInt64 convert any value to []int64
func ToArrayOfString ¶
func ToArrayOfString(value interface{}) (result []string)
ToArrayOfString convert any value to []string
func ToJsonString ¶
func ToJsonString(data interface{}) (jsonString string)
ToJsonString convert any value to json string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.