package
Version:
v0.1.12
Opens a new window with list of versions in this module.
Published: Apr 1, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Typ is a generic type for a set data structure.
It can only be used on comparable data types though
func (s Typ[T]) Add(element T, withVal ...string)
Add adds an element to the set.
func (s Typ[T]) Contains(element T) bool
Contains checks if an element is in the set.
func (s Typ[T]) Remove(element T)
Remove removes an element from the set.
Size returns the number of elements in the set.
Value will return the element value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.