package
Version:
v0.0.0-...-5c63c08
Opens a new window with list of versions in this module.
Published: Dec 27, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Intersect returns a new set representing strings that are in both a and b.
New returns a new stringset with the given entries.
OfRunes takes a string, and returns a stringset built by treating each rune
as a separate entry.
func (s S) AddAll(other S)
AddAll adds all the entries in `other` to this set.
Clone returns a clone of the set.
ClonePlus returns a new set with the given item included.
func (s S) ContainsAll(other S) bool
ContainsAll returns true if this set has every key in the other one.
func (s S) ContainsAny(other S) bool
ContainsAny returns true if this set has any key in the other one.
func (s S) Intersection(other S) S
Intersection returns a new set containing all items in both this and the other set.
Keys returns a sorted slice of all the strings in the set.
String returns a clen string representation of the set.
func (s S) Union(other S) S
Union returns a new set containing all items either in this or the other set or both.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.