Documentation ¶
Index ¶
- type Int32Set
- func (d *Int32Set) Add(items ...int32) *Int32Set
- func (d *Int32Set) Contains(items ...int32) bool
- func (d *Int32Set) Difference(other *Int32Set) *Int32Set
- func (d *Int32Set) Intersect(other *Int32Set) *Int32Set
- func (d *Int32Set) Remove(items ...int32) *Int32Set
- func (d *Int32Set) Scan(src interface{}) error
- func (d *Int32Set) Size() int
- func (d *Int32Set) ToArray() []int32
- func (d *Int32Set) Union(other *Int32Set) *Int32Set
- func (d Int32Set) Value() (driver.Value, error)
- type Int64Set
- func (d *Int64Set) Add(items ...int64) *Int64Set
- func (d *Int64Set) Contains(items ...int64) bool
- func (d *Int64Set) Difference(other *Int64Set) *Int64Set
- func (d *Int64Set) Intersect(other *Int64Set) *Int64Set
- func (d *Int64Set) Remove(items ...int64) *Int64Set
- func (d *Int64Set) Scan(src interface{}) error
- func (d *Int64Set) Size() int
- func (d *Int64Set) ToArray() []int64
- func (d *Int64Set) Union(other *Int64Set) *Int64Set
- func (d Int64Set) Value() (driver.Value, error)
- type StringSet
- func (d *StringSet) Add(items ...string) *StringSet
- func (d *StringSet) Contains(items ...string) bool
- func (d *StringSet) Difference(other *StringSet) *StringSet
- func (d *StringSet) Intersect(other *StringSet) *StringSet
- func (d *StringSet) Remove(items ...string) *StringSet
- func (d *StringSet) Scan(src interface{}) error
- func (d *StringSet) Size() int
- func (d *StringSet) ToArray() []string
- func (d *StringSet) Union(other *StringSet) *StringSet
- func (d StringSet) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int32Set ¶
type Int32Set struct {
// contains filtered or unexported fields
}
如果需要通用泛型,可以使用github.com/deckarep/golang-set这个包 非goroutine安全
func NewInt32Set ¶
type Int64Set ¶
type Int64Set struct {
// contains filtered or unexported fields
}
func NewInt64Set ¶
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
func NewStringSet ¶
Click to show internal directories.
Click to hide internal directories.