Documentation ¶
Index ¶
- func AppendWithoutDupes(a []string, b ...string) []string
- func BulletedIndentedStringList(list []string) string
- func DedupedAndSorted(slice []string) (result []string)
- func EscapeAndJoin(parts []string, opts EscapeSplitOptions) string
- func QuotedStringList(list []string) string
- func StringSliceEquals(a, b []string) bool
- func StringSliceStartsWith(a []string, elem string) bool
- func UnescapeAndSplit(s string, opts EscapeSplitOptions) ([]string, error)
- type EscapeSplitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendWithoutDupes ¶ added in v0.7.11
returns a slice that consists of `a`, in order, followed by elements of `b` that are not in `a`
func BulletedIndentedStringList ¶ added in v0.10.14
func DedupedAndSorted ¶ added in v0.5.1
Deduplicate and sort a slice of strings.
func EscapeAndJoin ¶ added in v0.17.5
func EscapeAndJoin(parts []string, opts EscapeSplitOptions) string
func QuotedStringList ¶ added in v0.8.3
Quote each string in the list and separate them by commas.
func StringSliceEquals ¶ added in v0.6.0
func StringSliceStartsWith ¶ added in v0.9.5
StringSliceStartsWith returns true if slice A starts with the given elem.
func UnescapeAndSplit ¶ added in v0.17.5
func UnescapeAndSplit(s string, opts EscapeSplitOptions) ([]string, error)
Types ¶
type EscapeSplitOptions ¶ added in v0.17.5
func NewEscapeSplitOptions ¶ added in v0.17.5
func NewEscapeSplitOptions() EscapeSplitOptions
Click to show internal directories.
Click to hide internal directories.