slice

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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