Versions in this module Expand all Collapse all v1 v1.1.1 Sep 22, 2025 v1.1.0 Aug 26, 2025 Changes in this version + type HashFn func(t T) string + type ISet interface + All func() iter.Seq2[int, V] + Clear func() + Copy func() ISet[V] + Has func(k V) bool + New func() ISet[V] + Put func(k V) + Remove func(k V) + Size func() int + String func() string + Values func() []V + type RingQueue struct + func NewRingQueue[T any](capacity int, synchronized bool) *RingQueue[T] + func (r *RingQueue[T]) Items() []T + func (r *RingQueue[T]) Iter() iter.Seq[T] + func (r *RingQueue[T]) Iter2() iter.Seq2[int, T] + func (r *RingQueue[T]) Pop() T + func (r *RingQueue[T]) Push(elem T) + func (r *RingQueue[T]) Size() int + type Set struct + func NewCustomSet[V any](iSet ISet[V]) Set[V] + func NewHashSetWithHashFn[V any](hashFn HashFn[V], values ...V) Set[V] + func NewHashSet[V any](values ...V) Set[V] + func NewSet[V comparable](values ...V) Set[V] + func (s Set[V]) All() iter.Seq2[int, V] + func (s Set[V]) Clear() + func (s Set[V]) Clone() Set[V] + func (s Set[V]) Difference(others ...Set[V]) Set[V] + func (s Set[V]) Each(fn func(v V)) + func (s Set[V]) EachWithErrs(fn func(key V) error) []error + func (s Set[V]) Equal(to Set[V]) bool + func (s Set[V]) Has(k V) bool + func (s Set[V]) InPlaceDifference(others ...Set[V]) Set[V] + func (s Set[V]) InPlaceIntersection(others ...Set[V]) Set[V] + func (s Set[V]) InPlaceUnion(others ...Set[V]) Set[V] + func (s Set[V]) Intersection(others ...Set[V]) Set[V] + func (s Set[V]) IsDisjoint(other Set[V]) bool + func (s Set[V]) IsProperSubset(to Set[V]) bool + func (s Set[V]) IsProperSuperset(to Set[V]) bool + func (s Set[V]) IsSubset(of Set[V]) bool + func (s Set[V]) IsSuperset(of Set[V]) bool + func (s Set[V]) Keys() []V + func (s Set[V]) MarshalJSON() ([]byte, error) + func (s Set[V]) Put(k V) + func (s Set[V]) Remove(k V) + func (s Set[V]) Size() int + func (s Set[V]) String() string + func (s Set[V]) SymmetricDifference(others ...Set[V]) Set[V] + func (s Set[V]) Union(others ...Set[V]) Set[V] + func (s Set[V]) Values() []V + type Stack struct + func (s *Stack[T]) Copy() Stack[T] + func (s *Stack[T]) HasMore() bool + func (s *Stack[T]) Peek() (t T) + func (s *Stack[T]) Pop() (t T) + func (s *Stack[T]) Push(value T) + func (s *Stack[T]) Size() int + type Tuple struct + A A + B B + type TupleWithErr struct + A A + B B + E error + func (t TupleWithErr[A, B]) HasError() bool + func (t TupleWithErr[A, B]) HasValue() bool Other modules containing this package github.com/zendesk/go-generics/datastructures