 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type StringSet
- func (m *StringSet) Add(value string) bool
- func (m *StringSet) Clear()
- func (m *StringSet) Delete(value string) (ok bool)
- func (m *StringSet) Equal(other StringSet) bool
- func (m *StringSet) Has(value string) (ok bool)
- func (m *StringSet) IsSubset(other StringSet) bool
- func (m *StringSet) IsSuperset(other StringSet) bool
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSet ¶
type StringSet []string
StringSet adds convenient methods to manipulate the items in the set.
It is imperative that tag `dynamodbav :",stringset"` is used to allow the field to be marshaled as a string set. If you forget to do so, the array will be marshalled as a list instead. See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/dynamodb/dynamodbattribute#Marshal.
func (*StringSet) Add ¶
Add return true only if the value hasn't existed in the set before the invocation.
func (*StringSet) Delete ¶
Delete returns true only if the value existed in the set before the invocation.
func (*StringSet) Equal ¶
Equal returns true only if every element in this set is in the other set and vice versa.
func (*StringSet) IsSubset ¶
IsSubset returns true if every element in this set is in the specified set (other).
func (*StringSet) IsSuperset ¶
IsSuperset returns true if every element in the specified set (other) is in this set.