package
Version:
v1.4.43
Opens a new window with list of versions in this module.
Published: Jul 22, 2024
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
¶
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.