Documentation ¶
Index ¶
- func FloatExist(arr []float64, val float64) bool
- func IntAppendIfNotExists(arr []int64, str int64) []int64
- func IntContains(arr []int64, str int64) bool
- func IntJoin(arr []int64, sep string) string
- func IntsAppendIfNotExists(arr []int64, ints []int64) []int64
- func ParseEmail(str_emails, each_name string) []string
- func StrAppendIfNotExists(arr []string, str string) []string
- func StrContains(arr []string, str string) bool
- func StrJoin(arr []string, sep string) string
- func StrToInt(arr []string) []int64
- func StrsAppendIfNotExists(arr []string, strs []string) []string
- func ToJson(arr []any) string
- func ToMsgp(arr []any) []byte
- func UIntJoin(arr []uint64, sep string) string
- type MSX
- type X
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FloatExist ¶
FloatExist check if float exists on array
func IntAppendIfNotExists ¶
IntAppendIfNotExists Append if not exists
func IntContains ¶
IntContains Append int64 to array of string if not exists
func IntJoin ¶
IntJoin combine int64s in the array of int64 with the chosen string separator
m1 := []int64{123,456} A.IntJoin(m1,`|`) // 123|456
func IntsAppendIfNotExists ¶
IntsAppendIfNotExists Append slices if not exists
func ParseEmail ¶
ParseEmail split, add alias, and concat emails with name
func StrAppendIfNotExists ¶
StrAppendIfNotExists Append if not exists
func StrContains ¶
StrContains Append string to array of string if not exists
func StrJoin ¶
StrJoin combine strings in the array of string with the chosen string separator
m1 := []string{`satu`,`dua`} A.StrJoin(m1,`-`) // satu-dua
func StrToInt ¶
StrToInt Convert array of string to array of int64
func main() { m := []string{`1`,`2`} L.Print(A.StrToInt(m))//output [1 2] }
convert string list to integer list
func StrsAppendIfNotExists ¶
StrsAppendIfNotExists Append slices if not exists
func ToJson ¶
ToJson convert map array of string to JSON string type
m := []any{123,`abc`} L.Print(A.ToJson(m)) // [123,"abc"]