package
Version:
v0.0.0-...-1f26eb9
Opens a new window with list of versions in this module.
Published: Jan 10, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Set struct {
Elems map[string]bool `json:"elements"`
}
Set struct has one attribute elements that holds true when an element is in the set
SetFromSlice creates a set from a slice
return a new set as the union of two sets
Check if elem is contained within set s
Del deletes elem from set s
func (s Set) SetElemsFromSlice(slice []string)
SetElemsFromSlice replaces the elements of a set by the contents of a slice
ToSlice returns the elements of a set as a slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.