hset

package
v0.3.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hset

type Hset struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Hset

func (*Hset) Add

func (hset *Hset) Add(items ...interface{})

func (*Hset) Clear

func (hset *Hset) Clear()

func (*Hset) Contains

func (hset *Hset) Contains(items ...interface{}) bool

func (*Hset) Empty

func (hset *Hset) Empty() bool

func (*Hset) Exists

func (hset *Hset) Exists(item interface{}) bool

func (*Hset) FromJSON

func (set *Hset) FromJSON(data []byte) error

func (*Hset) Len

func (hset *Hset) Len() int

func (*Hset) Remove

func (hset *Hset) Remove(items ...interface{})

func (*Hset) Same

func (hset *Hset) Same(other Set) bool

func (*Hset) String

func (hset *Hset) String(pre ...bool) string

func (*Hset) ToJSON

func (set *Hset) ToJSON() ([]byte, error)

func (*Hset) Values

func (hset *Hset) Values() []interface{}

type Set

type Set interface {
	Add(items ...interface{})
	Remove(items ...interface{})
	Clear()
	Contains(items ...interface{}) bool
	Len() int
	Same(other Set) bool
	Values() []interface{}
	String() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL