package
Version:
v0.0.0-...-202a999
Opens a new window with list of versions in this module.
Published: Jun 11, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
StringSlice returns a strings slice representation of all set items.
Set represents a set instance.
func New(items ...interface{}) *Set
New creates a new set instance.
func (s *Set) Add(items ...interface{})
Add inserts new items into the set.
func (s *Set) Has(items ...interface{}) bool
Has returns whether or not items are present in the set.
Len returns the number of items in the set.
func (s *Set) Remove(items ...interface{})
Remove removes items from the set.
func (s *Set) Slice() []interface{}
Slice returns a slice of all set items.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.