Documentation
¶
Index ¶
- func Compare(slice1, slice2 []string) ([]string, []string)
- func Difference(slice1, slice2 []string) []string
- func DifferenceInterface(slice1, slice2 []interface{}) []interface{}
- func DifferenceUint64(slice1, slice2 []uint64) []uint64
- func Explode(sep string, s string) []string
- func Filter(ss []string, filter ...func(s string) bool) []string
- func Implode(sep string, ss ...string) string
- func InSlice(s string, ss []string) bool
- func Intersect(slice1, slice2 []string) []string
- func IntersectInterface(slice1, slice2 []interface{}) []interface{}
- func IntersectUint64(slice1, slice2 []uint64) []uint64
- func IsEmpty(ss []string) bool
- func Merge(slice1, slice2 []string) []string
- func Pop(ss *[]string) (string, bool)
- func Push(s string, ss *[]string) int
- func Shift(ss *[]string) (string, bool)
- func SplitByLen(s string, maxLen int) []string
- func Union(slice1, slice2 []string) []string
- func UnionInterface(slice1, slice2 []interface{}) []interface{}
- func UnionUint64(slice1, slice2 []uint64) []uint64
- func Unique(ss []string) []string
- func Unshift(s string, ss *[]string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
Difference slice差集 - 属于slice1,不属于slice2
func DifferenceInterface ¶
func DifferenceInterface(slice1, slice2 []interface{}) []interface{}
DifferenceInterface slice差集 - 属于slice1,不属于slice2
func DifferenceUint64 ¶
DifferenceUint64 slice差集 - 属于slice1,不属于slice2
func IntersectInterface ¶
func IntersectInterface(slice1, slice2 []interface{}) []interface{}
IntersectInterface slice交集
func IntersectUint64 ¶
IntersectUint64 slice交集
func UnionInterface ¶
func UnionInterface(slice1, slice2 []interface{}) []interface{}
UnionInterface slice并集
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.