Documentation
¶
Index ¶
- func HasPrefix(pattern, s string) bool
- func HasPrefixFold(pattern, s string) bool
- func HasPrefixSimple(pattern, s string) bool
- func HasPrefixSimpleFold(pattern, s string) bool
- func Match(pattern, s string) bool
- func MatchFold(pattern, s string) bool
- func MatchSimple(pattern, s string) bool
- func MatchSimpleFold(pattern, s string) bool
- func StartsWith(pattern, s string) bool
- func StartsWithFold(pattern, s string) bool
- func StartsWithSimple(pattern, s string) bool
- func StartsWithSimpleFold(pattern, s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPrefix ¶ added in v1.2.7
HasPrefix tests whether the pattern string begins with prefix s. supports '*' and '?' wildcards in the pattern string. alias for StartsWith.
func HasPrefixFold ¶ added in v1.2.7
HasPrefixFold tests whether the pattern string begins with prefix s. supports '*' and '?' wildcards in the pattern string. case insensitive. alias for StartsWithFold.
func HasPrefixSimple ¶ added in v1.2.7
HasPrefixSimple tests whether the pattern string begins with prefix s. supports only '*' wildcard in the pattern. alias for StartsWithSimple.
func HasPrefixSimpleFold ¶ added in v1.2.7
HasPrefixSimpleFold tests whether the pattern string begins with prefix s. supports only '*' wildcard in the pattern. case insensitive. alias for StartsWithSimpleFold.
func Match ¶
Match tests whether the string s matches/satisfies the pattern string. supports '*' and '?' wildcards in the pattern string. case insensitive. unlike path.Match(), considers a path as a flat name space while matching the pattern.
func MatchFold ¶
MatchFold tests whether the string s matches/satisfies the pattern string. supports '*' and '?' wildcards in the pattern string. unlike path.Match(), considers a path as a flat name space while matching the pattern.
func MatchSimple ¶
MatchSimple tests whether the string s matches/satisfies the pattern string. supports only '*' wildcard in the pattern. considers a file system path as a flat name space.
func MatchSimpleFold ¶
MatchSimpleFold tests whether the string s matches/satisfies the pattern string. supports only '*' wildcard in the pattern. case insensitive. considers a file system path as a flat name space.
func StartsWith ¶ added in v1.2.7
StartsWith tests whether the pattern string begins with prefix s. supports '*' and '?' wildcards in the pattern string.
func StartsWithFold ¶ added in v1.2.7
StartsWithFold tests whether the pattern string begins with prefix s. supports '*' and '?' wildcards in the pattern string. case insensitive.
func StartsWithSimple ¶ added in v1.2.7
StartsWithSimple tests whether the pattern string begins with prefix s. supports only '*' wildcard in the pattern.
func StartsWithSimpleFold ¶ added in v1.2.7
StartsWithSimpleFold tests whether the pattern string begins with prefix s. supports only '*' wildcard in the pattern. case insensitive.
Types ¶
This section is empty.