slice

package
v0.0.0-...-9a41f76 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, element string) bool

Contains slice中是否包含某个字符串

func ConvertSliceIntToString

func ConvertSliceIntToString[T int | int8 | int16 | int32 | int64](input []T) string

ConvertSliceIntToString 将 slice 转换为逗号分隔的字符串

func RemoveDuplicatesFromSlice

func RemoveDuplicatesFromSlice(intSlice []string) []string

RemoveDuplicatesFromSlice 去重

func ReverseSlice

func ReverseSlice(a []int) []int

ReverseSlice 反转

func Shuffle

func Shuffle(array []string) []string

Shuffle 随机打乱

Types

This section is empty.

Jump to

Keyboard shortcuts

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