Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2021 Changes in this version + func IgnoreDuplicate(c *Collector) + func IgnoreEmpty(c *Collector) + func Ptr(v string) *string + func PtrDefToNil(v string, def string) *string + func PtrZeroToNil(v string) *string + func Val(v *string) string + func ValDef(v *string, def string) string + type Collector struct + func NewCollector(options ...CollectorOption) *Collector + func (c *Collector) Add(ss ...string) *Collector + func (c *Collector) AddPtr(ss ...*string) *Collector + func (c *Collector) Map() Map + func (c *Collector) Slice() Slice + type CollectorOption func(*Collector) + func InitialCap(cap int) CollectorOption + type Map map[string]struct + func (m Map) Clone() Map + func (m Map) Filter(p PredicateFunc) Map + func (m Map) ForEach(r ReceiveFunc) + func (m Map) Map(t TransformFunc) Map + func (m Map) ToSlice() Slice + type PredicateFunc func(string) bool + func And(ps ...PredicateFunc) PredicateFunc + func Eq(eq string) PredicateFunc + func GT(gt string) PredicateFunc + func GTE(gte string) PredicateFunc + func LT(lt string) PredicateFunc + func LTE(lte string) PredicateFunc + func Not(p PredicateFunc) PredicateFunc + func Or(ps ...PredicateFunc) PredicateFunc + type ReceiveFunc func(string) + type Slice []string + func (s Slice) Apply(t TransformFunc) + func (s Slice) Clone() Slice + func (s Slice) Filter(p PredicateFunc) Slice + func (s Slice) ForEach(r ReceiveFunc) + func (s Slice) IsSorted() bool + func (s Slice) Len() int + func (s Slice) Less(i, j int) bool + func (s Slice) Map(t TransformFunc) Slice + func (s Slice) SafeGet(i int) string + func (s Slice) SafeGetDef(i int, def string) string + func (s Slice) SafeGetPtr(i int) *string + func (s Slice) Sort() + func (s Slice) Swap(i, j int) + func (s Slice) ToInterfaces() []interface{} + func (s Slice) ToMap() Map + type TransformFunc func(string) string