Documentation
¶
Index ¶
- type Int64s
- type Ints
- type SafeInt64s
- type SafeInts
- type SafeSet
- func (ss *SafeSet[T]) Add(keys ...T) *SafeSet[T]
- func (ss *SafeSet[T]) AddIfNotExists(key T) bool
- func (ss *SafeSet[T]) Clone() *SafeSet[T]
- func (ss *SafeSet[T]) Delete(keys ...T) *SafeSet[T]
- func (ss *SafeSet[T]) Has(key T) bool
- func (ss *SafeSet[T]) Keys() []T
- func (ss *SafeSet[T]) Len() int
- func (ss *SafeSet[T]) MarshalBinary() ([]byte, error)
- func (ss *SafeSet[T]) MarshalJSON() ([]byte, error)
- func (ss *SafeSet[T]) Merge(o Set[T]) *SafeSet[T]
- func (ss *SafeSet[T]) MergeSafe(o *SafeSet[T]) *SafeSet[T]
- func (ss *SafeSet[T]) Set(keys ...T) *SafeSet[T]
- func (ss *SafeSet[T]) SortedKeys() []T
- func (ss *SafeSet[T]) UnmarshalBinary(data []byte) error
- func (ss *SafeSet[T]) UnmarshalJSON(data []byte) error
- type SafeStrings
- type Set
- func (s Set[T]) Add(keys ...T) Set[T]
- func (s *Set[T]) AddIfNotExists(key T) bool
- func (s Set[T]) Clone() Set[T]
- func (s Set[T]) Delete(keys ...T) Set[T]
- func (s Set[T]) Equal(os Set[T]) bool
- func (s Set[T]) Has(key T) bool
- func (s Set[T]) Keys() []T
- func (s Set[T]) Len() int
- func (s Set[T]) MarshalBinary() ([]byte, error)
- func (s Set[T]) MarshalJSON() ([]byte, error)
- func (s Set[T]) Merge(os ...Set[T]) Set[T]
- func (s *Set[T]) Set(keys ...T) Set[T]
- func (s Set[T]) SortedKeys() []T
- func (s Set[T]) String() string
- func (s *Set[T]) UnmarshalBinary(data []byte) (err error)
- func (s *Set[T]) UnmarshalJSON(data []byte) (err error)
- type Strings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeInt64s ¶
type SafeSet ¶
func (*SafeSet[T]) AddIfNotExists ¶
func (*SafeSet[T]) MarshalBinary ¶
func (*SafeSet[T]) MarshalJSON ¶
func (*SafeSet[T]) SortedKeys ¶
func (ss *SafeSet[T]) SortedKeys() []T
func (*SafeSet[T]) UnmarshalBinary ¶
func (*SafeSet[T]) UnmarshalJSON ¶
type SafeStrings ¶
type Set ¶
Set[T] is a simple set.
func (*Set[T]) AddIfNotExists ¶
AddIfNotExists returns true if the key was added, false if it already existed
func (Set[T]) MarshalBinary ¶
func (Set[T]) MarshalJSON ¶
func (Set[T]) SortedKeys ¶
func (s Set[T]) SortedKeys() []T
func (*Set[T]) UnmarshalBinary ¶
func (*Set[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.