Documentation
¶
Index ¶
- func DeleteSlice[T int | string | int32 | int64](s []T, elem T) []T
- func FindInt(slice []int, target int) bool
- func FindString(slice []string, target string) bool
- func FindUint(slice []uint, target uint) bool
- func HasIn[T int | string | int32 | int64](value T, allows []T) bool
- func HasNotIn[T int | string | int32 | int64](value T, allows []T) bool
- func RemoveString(slice []string, remove func(item string) bool) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindString ¶
FindString return true if target in slice, return false if not.
func HasIn ¶
HasIn [T int | string | int32 | int64]
@Description: 判断一个值是否在列表中 @param value :需要判断的值 @param allows : 容许的值列表 @return bool:返回true代表在列表中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.