Documentation
¶
Overview ¶
----------------------------------------------------------------------------
String Set ¶
Author: William Shaffer Version: 07-May-2024
Copyright (c) 2024 William Shaffer All Rights Reserved ¶
----------------------------------------------------------------------------
The stringset package contains implementations of sets for the string base type.
Index ¶
- type StringSet
- func (set *StringSet) Add(value string)
- func (set *StringSet) AddAll(values []string)
- func (set *StringSet) Contains(value string) bool
- func (set *StringSet) Delete(value string)
- func (set *StringSet) Equal(another *StringSet) bool
- func (set *StringSet) IsEmpty() bool
- func (set *StringSet) Size() int
- func (set *StringSet) ToSlice() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSet ¶
func (*StringSet) Add ¶
Add inserts a string into the set. If the string is already in the set, there is no change.
func (*StringSet) Delete ¶
Delete deletes a string from the set. If the string is not in the set, nothing happens.
func (*StringSet) IsEmpty ¶
---------------------------------------------------------------------------- Methods ----------------------------------------------------------------------------
IsEmpty return true if the set has zero items.