package str
import "cmd/go/internal/str"
Package str provides string manipulation utilities.
Index ¶
- func Contains(x []string, s string) bool
- func FoldDup(list []string) (string, string)
- func SplitQuotedFields(s string) ([]string, error)
- func StringList(args ...interface{}) []string
Functions ¶
func Contains ¶
Contains reports whether x contains s.
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 SplitQuotedFields ¶
SplitQuotedFields splits s into a list of fields, allowing single or double quotes around elements. There is no unescaping or other processing within quoted fields.
func StringList ¶
func StringList(args ...interface{}) []string
StringList flattens its arguments into a single []string. Each argument in args must have type string or []string.
Source Files ¶
- Version
- v1.9.0-beta.1
- Published
- Jun 14, 2017
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 minute ago –
Tools for package owners.