Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringHandler ¶
func (StringHandler) Do ¶
func (a StringHandler) Do(s string) error
Do invokes a StringHandler with a specific string
func (StringHandler) Then ¶
func (a StringHandler) Then(b StringHandler) StringHandler
Then joins two string handlers so the left-hand side runs first then the right-hand side.
type StringSlice ¶
type StringSlice []string
func (StringSlice) ForEach ¶
func (s StringSlice) ForEach(f StringHandler) error
ForEach invokes a StringHandler for each entry in a StringSlice. First one to return an error terminates the loop.
func (StringSlice) IsEmpty ¶
func (s StringSlice) IsEmpty() bool
IsEmpty returns true if a StringSlice has no entries
func (StringSlice) Join ¶
func (s StringSlice) Join(sep string) string
Join returns the content of a StringSlice with the specified separator between each entry
func (StringSlice) Join2 ¶
func (s StringSlice) Join2(prefix, suffix, sep string) string
Join2 is similar to Join except it adds the prefix & suffix to the final result
func (StringSlice) Sort ¶
func (s StringSlice) Sort() StringSlice
Sort sorts the string slice using a case-insensitive comparator.
type StringSliceHandler ¶
type StringSliceHandler func(StringSlice) (StringSlice, error)
func (StringSliceHandler) Do ¶
func (a StringSliceHandler) Do(s StringSlice) (StringSlice, error)
func (StringSliceHandler) Then ¶
func (a StringSliceHandler) Then(b StringSliceHandler) StringSliceHandler
Click to show internal directories.
Click to hide internal directories.