Documentation
¶
Overview ¶
Package str provides string manipulation utilities.
Index ¶
- func Contains(x []string, s string) bool
- func FoldDup(list []string) (string, string)
- func GlobsMatchPath(globs, target string) bool
- func HasFilePathPrefix(s, prefix string) bool
- func HasPathPrefix(s, prefix string) bool
- func SplitQuotedFields(s string) ([]string, error)
- func StringList(args ...interface{}) []string
- func ToFold(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FoldDup ¶
FoldDup reports a pair of strings from the list that are equal according to strings.EqualFold. It returns "", "" if there are no such strings.
func GlobsMatchPath ¶ added in go1.13
GlobsMatchPath reports whether any path prefix of target matches one of the glob patterns (as defined by path.Match) in the comma-separated globs list. It ignores any empty or malformed patterns in the list.
func HasFilePathPrefix ¶ added in go1.10
func HasFilePathPrefix(s, prefix