Documentation
¶
Index ¶
- type Set
- func (set Set[T]) Add(other Set[T]) Set[T]
- func (set Set[T]) Clear()
- func (set Set[T]) Del(value T)
- func (set Set[T]) Has(value T) bool
- func (set Set[T]) Insert(value T)
- func (set *Set[T]) IsEmpty() bool
- func (set *Set[T]) IsZero() bool
- func (set Set[T]) Len() int
- func (set Set[T]) MarshalJSON() ([]byte, error)
- func (set *Set[T]) Scan(src any) error
- func (set Set[T]) Slice() []T
- func (set Set[T]) String() string
- func (set Set[T]) Sub(other Set[T]) Set[T]
- func (set Set[T]) Union(other Set[T]) Set[T]
- func (set *Set[T]) UnmarshalJSON(data []byte) error
- func (set Set[T]) Value() (driver.Value, error)
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T Value] struct { // contains filtered or unexported fields }
Set 结构存储不重复的字符串数组
func (Set[T]) MarshalJSON ¶
MarshalJSON encode status value into json
func (*Set[T]) UnmarshalJSON ¶
UnmarshalJSON decode status value from json
Click to show internal directories.
Click to hide internal directories.