Documentation ¶
Index ¶
- func AddList(list, bid string) (s string)
- func DropRepeat(list []string) []string
- func Int64ListAppend(list []int64, i int64) []int64
- func Int64ListReduce(list1, list2 []int64) []int64
- func IntListReduce(list1, list2 []int) []int
- func InterfaceToSlice(dataSlice interface{}) (result []interface{})
- func ListAddList(list1, list2 []string) []string
- func ListReduce(list1, list2 []string) []string
- func ListReduceList(list1, list2 []string) (list3 []string)
- func ReduceList(list, bid string) (s string)
- func RemoveRepByLoop(slc []interface{}) []interface{}
- func RemoveRepByMap(slc []interface{}) []interface{}
- func RemoveRepByReflect(src []interface{}) (dst []interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropRepeat ¶
func Int64ListAppend ¶
func Int64ListReduce ¶
func IntListReduce ¶
func InterfaceToSlice ¶
func InterfaceToSlice(dataSlice interface{}) (result []interface{})
InterfaceToSlice 任意类型interface{} 转 []interface{}
func ListAddList ¶
func ListReduce ¶
func ListReduceList ¶
func ReduceList ¶
func RemoveRepByLoop ¶
func RemoveRepByLoop(slc []interface{}) []interface{}
RemoveRepByLoop 切片去重 时间换空间
func RemoveRepByMap ¶
func RemoveRepByMap(slc []interface{}) []interface{}
RemoveRepByMap 切片去重 空间换时间
func RemoveRepByReflect ¶
func RemoveRepByReflect(src []interface{}) (dst []interface{})
RemoveRepByReflect 通过反射的方式判断切片中是否有一样的内容,然后去重
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.