Documentation ¶
Overview ¶
Package ids 唯一标识.
包括ID和IDS.
Index ¶
- Variables
- type ID
- type IDS
- func (is IDS) Add(elems ...ID) IDS
- func (is IDS) AddBytes(data ...[]byte) IDS
- func (is IDS) AddIDS(elem IDS) IDS
- func (is IDS) All(elems ...ID) bool
- func (is IDS) AllIDS(elem IDS) bool
- func (is IDS) Any(elems ...ID) bool
- func (is IDS) AnyIDS(elem IDS) bool
- func (is IDS) Bytes() [][]byte
- func (is IDS) Complement(elems ...IDS) IDS
- func (is IDS) Del(elems ...ID) IDS
- func (is IDS) DelIDS(elems IDS) IDS
- func (is IDS) Has(id ID) bool
- func (is IDS) Marshal() []byte
- func (is IDS) Slice() []ID
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBytesSize = errors.New("字节码长度不够")
ErrBytesSize 长度不够.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID [16]byte
ID 唯一标识.
Click to show internal directories.
Click to hide internal directories.