xslice

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64InSlice

func Int64InSlice(num int64, arr []int64) bool

Int64InSlice 判断int是否在slice中

func IntInSlice

func IntInSlice(num int, arr []int) bool

IntInSlice 判断int是否在slice中

func Integer2String

func Integer2String(i interface{}) string

func Interface2String

func Interface2String(arr []interface{}) []string

Interface2String interface的slice转string的slice

func ReOrderSlice

func ReOrderSlice(org []uint32, dst []uint32)

func RemoveRep

func RemoveRep(slice []uint32) []uint32

func RemoveRepInt

func RemoveRepInt(slc []int) []int

func RemoveRepUint64

func RemoveRepUint64(slc []uint64) []uint64

func ReverseStringSlice

func ReverseStringSlice(slice []string) []string

func SliceInteger2String

func SliceInteger2String(arr ...interface{}) []string

func SliceUint32ToStr

func SliceUint32ToStr(arr ...uint32) []string

SliceUint32ToStr ...

func SliceUint64ToStr

func SliceUint64ToStr(arr ...uint64) []string

SliceUint64ToStr []uint64 to []string

func StrInSlice

func StrInSlice(str string, arr []string) bool

StrInSlice 判断string是否在slice中

func StrSliceRemove

func StrSliceRemove(slice []string, i int) []string

func StringToInt

func StringToInt(arr []string) []int

StringToInt string的slice转int

func StringToUint32

func StringToUint32(arr []string) []uint32

StringToUint32 string的slice转uint32

func StringToUint64

func StringToUint64(arr []string) []uint64

func Uint32ToInt32

func Uint32ToInt32(arr []uint32) []int32

Types

type Uint32Slice

type Uint32Slice []uint32

用于uid去重

func (Uint32Slice) Len

func (p Uint32Slice) Len() int

func (Uint32Slice) Less

func (p Uint32Slice) Less(i, j int) bool

func (Uint32Slice) Swap

func (p Uint32Slice) Swap(i, j int)

type Uint64Slice

type Uint64Slice []uint64

func (Uint64Slice) Len

func (p Uint64Slice) Len() int

func (Uint64Slice) Less

func (p Uint64Slice) Less(i, j int) bool

func (Uint64Slice) Swap

func (p Uint64Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

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