util

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WildcardContains

func WildcardContains(patterns []string, member string) bool

WildcardContains will return true if the given string matches at least one of the passed patterns. Patterns is a string slice which supports wildcards ('*').

func WildcardMatches added in v0.5.0

func WildcardMatches(pattern, str string) bool

WildcardMatches will return true if the given string matches the pattern. Pattern is a string which supports wildcards ('*').

func WildcardSubset

func WildcardSubset(patterns, members []string) bool

WildcardSubset returns whether the members is a subset of patterns which can include wildcards ('*'). Members is a subset of patterns if all members can be expressed by at least one passed pattern. The slice length of patterns can be less than members.

Types

This section is empty.

Jump to

Keyboard shortcuts

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