Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SliceSet ¶
SliceSet implements an safe slice backed set
func (*SliceSet) Cardinality ¶
Cardinality returns the number of elements in the set
type UnsafeSliceSet ¶
type UnsafeSliceSet struct {
// contains filtered or unexported fields
}
UnsafeSliceSet implements an unsafe slice backed set
func NewUnsafeSliceSet ¶
func NewUnsafeSliceSet() UnsafeSliceSet
NewUnsafeSliceSet creates a new UnsafeSliceSet
func (*UnsafeSliceSet) Add ¶
func (set *UnsafeSliceSet) Add(e string) (bool, error)
Add a single element to the set, return true if newly added
func (*UnsafeSliceSet) Cardinality ¶
func (set *UnsafeSliceSet) Cardinality() (int, error)
Cardinality returns the number of elements in the set
func (*UnsafeSliceSet) Close ¶
func (set *UnsafeSliceSet) Close() error
Close the underlying connection to the datastore
Click to show internal directories.
Click to hide internal directories.