slice

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 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 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