slice

package
v0.0.0-...-8c00ab9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contain

func Contain(list interface{}, obj interface{}) (bool, errors.AppError)

Contain 判断对象是否包含在数组的string中

func ContainIface

func ContainIface(v interface{}, sl []interface{}) bool

ContainIface 判断对象是否存在数组中

func ContainString

func ContainString(v string, sl []string) bool

ContainString 判断string是否包含在数组的string中

func EqualString

func EqualString(v string, sl []string) bool

EqualString 判断string是否存在数组中

func SliceUniqueInt64

func SliceUniqueInt64(s []int64) []int64

SliceUniqueInt64 通过map去重slice

func SliceUniqueString

func SliceUniqueString(s []string) []string

SliceUniqueString 通过map去重slice

func ToSlice

func ToSlice(arr interface{}) []interface{}

ToSlice 对象转list

Types

This section is empty.

Jump to

Keyboard shortcuts

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