sliceutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(src []interface{}, test interface{}) bool

func ContainsDeep added in v0.2.2

func ContainsDeep(src []interface{}, test interface{}) bool

func ConvertAny2Interface added in v0.2.3

func ConvertAny2Interface(src interface{}) ([]interface{}, error)

func IndexOf

func IndexOf(element string, data []string) int

func IndexOfAny added in v0.1.9

func IndexOfAny(target interface{}, anySlice interface{}) (int, error)

func InterfaceSlice2StringSlice

func InterfaceSlice2StringSlice(strSlice []interface{}) []string

func IsEmpty

func IsEmpty(src interface{}) bool

func StringContains

func StringContains(src []string, test string) bool

func StringFilter added in v0.5.7

func StringFilter(src []string, fn func(item string) bool) []string

func StringSlice2InterfaceSlice

func StringSlice2InterfaceSlice(strSlice []string) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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