Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Function to check if a string exists in a slice of strings
It supports the following wildcards as a prefix or suffix. Wildcard is not supported in the middle of the string.
Examples:
- Match("foo", []string{"foo"}) -> true
- Match("foo", []string{"bar"}) -> false
- Match("foo", []string{"*"}) -> true
- Match("foo", []string{"*o"}) -> true
- Match("foo", []string{"f*"}) -> true
- Match("foo", []string{"*f"}) -> false
- Match("foo", []string{"*o*"}) -> true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.