package
Version:
v1.3.2
Opens a new window with list of versions in this module.
Published: Apr 2, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Set struct
func NewSet(opt ...interface{}) *Set
NewSet news a set
func (s *Set) Add(e interface{}) bool
Add : add an element to Set
func (s *Set) Has(e interface{}) bool
Has indicates whether the set has the element.
Len return the length of the set
func (s *Set) Remove(e interface{})
Remove remove an element from set.
func (s *Set) Slice() (list []interface{})
Slice init set from []interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.