slice

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringsAnyEquals

func StringsAnyEquals(stringSlice []string, str string) bool

StringsAnyEquals returns true if any of the strings in the slice equal the given string.

func StringsAnyPrefix

func StringsAnyPrefix(stringSlice []string, prefix string) bool

StringsAnyPrefix returns true if any of the strings in the slice have the given prefix.

func StringsAnySuffix added in v0.1.2

func StringsAnySuffix(stringSlice []string, suffix string) bool

StringsAnySuffix returns true if any of the strings in the slice have the given suffix.

func StringsContaining

func StringsContaining(stringSlice []string, str string) []string

StringsContaining returns a slice of the strings containing the specified string.

func StringsDistinct added in v0.10.0

func StringsDistinct(str1, str2 []string) []string

StringsDistinct returns the distinct strings among two string arrays.

func StringsIntersection

func StringsIntersection(str1, str2 []string) []string

StringsIntersection returns the common elements in two string slices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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