Documentation ¶
Index ¶
- type Set
- func (s *Set) Difference(set *Set) *Set
- func (s *Set) Do(f func(interface{}))
- func (s *Set) Get(key interface{}) interface{}
- func (s *Set) GetDigest() (uint64, error)
- func (s *Set) Has(key interface{}) bool
- func (s *Set) Insert(key, val interface{})
- func (s *Set) InsertKey(key interface{})
- func (s *Set) Intersection(otherSet *Set) *Set
- func (s *Set) Len() int
- func (s *Set) ProperSubsetOf(set *Set) bool
- func (s *Set) Remove(key interface{})
- func (s *Set) SubsetOf(set *Set) bool
- func (s *Set) Union(set *Set) *Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set map[interface{}]interface{}
func (*Set) Difference ¶
Find the difference between two sets (s - set)
func (*Set) Insert ¶
func (s *Set) Insert(key, val interface{})
Add an element to the set, val can be struct{}
func (*Set) Intersection ¶
Find the intersection of two sets
func (*Set) ProperSubsetOf ¶
Test whether or not this set is a proper subset of "set"
Click to show internal directories.
Click to hide internal directories.