Documentation
¶
Index ¶
- type MultiSet
- func (s MultiSet) Add(key string, values ...string) MultiSet
- func (s MultiSet) AddIfNotExists(key, value string) bool
- func (s MultiSet) Clone() MultiSet
- func (s MultiSet) Delete(keys ...string) MultiSet
- func (s MultiSet) DeleteValues(key string, values ...string) MultiSet
- func (s MultiSet) Equal(os MultiSet) bool
- func (s MultiSet) Has(key, sub string) bool
- func (s MultiSet) Keys() []string
- func (s MultiSet) Len() int
- func (s MultiSet) MarshalJSON() ([]byte, error)
- func (s MultiSet) Match(fn func(key string, s Set) bool, all bool) bool
- func (s MultiSet) Merge(o MultiSet) MultiSet
- func (s MultiSet) MergeSet(key string, o Set) MultiSet
- func (s *MultiSet) Set(key string, values ...string) MultiSet
- func (s MultiSet) SortedKeys() []string
- func (s MultiSet) String() string
- func (s MultiSet) Values(key string) Set
- type SafeSet
- func (ss *SafeSet) Add(keys ...string) *SafeSet
- func (ss *SafeSet) AddIfNotExists(key string) bool
- func (ss *SafeSet) Clone() *SafeSet
- func (ss *SafeSet) Delete(keys ...string) *SafeSet
- func (ss *SafeSet) Has(key string) bool
- func (ss *SafeSet) Keys() []string
- func (ss *SafeSet) Len() int
- func (ss *SafeSet) MarshalJSON() ([]byte, error)
- func (ss *SafeSet) Merge(o Set) *SafeSet
- func (ss *SafeSet) MergeSafe(o *SafeSet) *SafeSet
- func (ss *SafeSet) Set(keys ...string) *SafeSet
- func (ss *SafeSet) SortedKeys() []string
- func (ss *SafeSet) UnmarshalJSON(data []byte) error
- type Set
- func (s Set) Add(keys ...string) Set
- func (s *Set) AddIfNotExists(key string) bool
- func (s Set) Clone() Set
- func (s Set) Delete(keys ...string) Set
- func (s Set) Equal(os Set) bool
- func (s Set) Has(key string) bool
- func (s Set) Keys() []string
- func (s Set) Len() int
- func (s Set) MarshalJSON() ([]byte, error)
- func (s Set) Merge(os ...Set) Set
- func (s *Set) Set(keys ...string) Set
- func (s Set) SortedKeys() []string
- func (s Set) String() string
- func (s *Set) UnmarshalJSON(data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiSet ¶
func (MultiSet) AddIfNotExists ¶
AddIfNotExists returns true if the key was added, false if it already existed
func (MultiSet) DeleteValues ¶
func (MultiSet) MarshalJSON ¶
func (MultiSet) SortedKeys ¶
type SafeSet ¶
type SafeSet struct {
// contains filtered or unexported fields
}
func (*SafeSet) AddIfNotExists ¶
func (*SafeSet) MarshalJSON ¶
func (*SafeSet) SortedKeys ¶
func (*SafeSet) UnmarshalJSON ¶
type Set ¶
type Set map[string]struct{}
Set is a simple set.
func (*Set) AddIfNotExists ¶
AddIfNotExists returns true if the key was added, false if it already existed
func (Set) MarshalJSON ¶
func (Set) SortedKeys ¶
func (*Set) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.