Documentation ¶
Index ¶
- func MatchFilters(filters Strings, s string) bool
- type FilterFunc
- type StringMap
- type StringMapper
- type Strings
- func (s Strings) AnyMatches(in string) bool
- func (s Strings) Camel() Strings
- func (s Strings) Contains(v string) bool
- func (s Strings) ContainsAll(v Strings) bool
- func (s Strings) ContainsAny(v Strings) bool
- func (s Strings) Filter(fn FilterFunc) Strings
- func (s Strings) Filters(filters Strings) Strings
- func (s Strings) Join(sep string) string
- func (s Strings) Map(f StringMapper) Strings
- func (s Strings) Max() int
- func (s Strings) Pascal() Strings
- func (s Strings) Sort() Strings
- func (s Strings) Sprintf(format string) Strings
- type Strings2D
- type StringsMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchFilters ¶
Types ¶
type FilterFunc ¶
type StringMapper ¶
type Strings ¶
type Strings []string
func (Strings) AnyMatches ¶
AnyMatches treats each string as a regexp and returns true if any match the input string.
func (Strings) ContainsAll ¶
ContainsAll returns true if all of the the params exists in the Strings.
func (Strings) ContainsAny ¶
ContainsAny returns true if any of the the params exists in the Strings.
func (Strings) Filter ¶
func (s Strings) Filter(fn FilterFunc) Strings
Filter applies the given filter function fn and returns a copy of the list for each string that returned true.
func (Strings) Filters ¶
Filters returns the list of strings that does not match any of the regex filters.
func (Strings) Join ¶
Join concatenates the elements of its first argument to create a single string. The separator string sep is placed between elements in the resulting string.
func (Strings) Map ¶
func (s Strings) Map(f StringMapper) Strings
Map apples the transform function f to each element and returns the mapped list.
type StringsMapper ¶
func Mapper ¶
func Mapper(f StringMapper) StringsMapper