Documentation
¶
Index ¶
- func HasAllElements(arr1 []interface{}, arr2 []interface{}) bool
- func InArray(elem interface{}, arr []interface{}) bool
- func IsSameStringArray(arr1 []string, arr2 []string) bool
- func RemoveRepeatedElement(arr []string) (newArr []string)
- func StringArrayToInterfacArray(arr []string) []interface{}
- func Sub(arr1 []string, arr2 []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAllElements ¶
func HasAllElements(arr1 []interface{}, arr2 []interface{}) bool
HasAllElements return true if the array arr1 contains all elements of array arr2
func InArray ¶
func InArray(elem interface{}, arr []interface{}) bool
InArray return true if the elem is in the array arr
func IsSameStringArray ¶
IsSameStringArray return true if arr1 and arr2 has exactly same elements without order care
func RemoveRepeatedElement ¶
RemoveRepeatedElement remove duplicated element in array
func StringArrayToInterfacArray ¶
func StringArrayToInterfacArray(arr []string) []interface{}
StringArrayToInterfacArray convert the []string to []interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.