Documentation ¶
Index ¶
- func ArrToIntArr(any_arr []any) []int64
- func ArrToStrArr(any_arr []any) []string
- func FromMsgp(byt []byte, v any) bool
- func ToAF(x any) []float64
- func ToAX(x any) A.X
- func ToArr(x any) []any
- func ToBool(any any) bool
- func ToByte(x any) byte
- func ToF(x any) float64
- func ToI(x any) int64
- func ToJson(any any) string
- func ToJson5(x any) string
- func ToJsonPretty(any any) string
- func ToMSS(x any) M.SS
- func ToMSX(x any) M.SX
- func ToMsgp(v any) (res []byte)
- func ToS(x any) string
- func ToTime(x any) time.Time
- func ToU(x any) uint64
- func ToYaml(any any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrToIntArr ¶
ArrToIntArr Convert array of any data type to array of int64
var m4 []any m4 = []any{1} // // tipe array L.ParentDescribe(X.ArrToIntArr(m4)) // []int64{1}
func ArrToStrArr ¶
ArrToStrArr convert array of any data type to array of string
var m4 []any m4 = []any{1} // // tipe array L.ParentDescribe(X.ArrToStrArr(m4)) // []string{"1"}
func FromMsgp ¶
FromMsgp convert Msgpack bytes to anything
ok := X.FromMsgp(`\x81\xa1A\x01`, &struct{ A int }{})
func ToArr ¶
ToArr convert any data type to array of any
var m3 any m3 = []any{1} // tipe array L.ParentDescribe(X.ToArr(m3)) // []interface {}{int(1),}
func ToBool ¶
ToBool convert any data type to bool
var m any m = `123` L.ParentDescribe(X.ToBool(m)) // bool(true)
func ToByte ¶
ToByte convert any data type to int8
var m any m = `123` L.ParentDescribe(X.ToByte(m)) // byte(123)
func ToF ¶
ToF Convert any data type to float64
var m any m = `123.5` L.ParentDescribe(X.ToF(m)) // float64(123.5)
func ToI ¶
ToI convert any data type to int64
var m any m = `123` L.ParentDescribe(X.ToI(m)) // int64(123)
func ToJsonPretty ¶
ToJsonPretty convert to beautiful json text
m:= []interface {}{true,`1`,23,`wabcd`} L.Print(K.ToJsonPretty(m)) // [ // true, // "1", // 23, // "wabcd" // ]
func ToS ¶
ToS convert any data type to string
var m any m = `123` L.ParentDescribe(X.ToS(m)) // `123`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.