slices

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddList

func AddList(list, bid string) (s string)

func DropRepeat

func DropRepeat(list []string) []string

func Int64ListAppend

func Int64ListAppend(list []int64, i int64) []int64

func Int64ListReduce

func Int64ListReduce(list1, list2 []int64) []int64

func IntListReduce

func IntListReduce(list1, list2 []int) []int

func InterfaceToSlice

func InterfaceToSlice(dataSlice interface{}) (result []interface{})

InterfaceToSlice 任意类型interface{} 转 []interface{}

func ListAddList

func ListAddList(list1, list2 []string) []string

func ListReduce

func ListReduce(list1, list2 []string) []string

func ListReduceList

func ListReduceList(list1, list2 []string) (list3 []string)

func ReduceList

func ReduceList(list, bid string) (s string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL