Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrElemExist = errors.New("elem exist")
View Source
var ErrElemNtExist = errors.New("elem not exist")
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
type Comparable interface {
IsEqual(obj interface{}) bool
}
type IDAllocator ¶
type IDAllocator struct {
// contains filtered or unexported fields
}
func NewIDAllocator ¶
func NewIDAllocator() *IDAllocator
func (*IDAllocator) Alloc ¶
func (this *IDAllocator) Alloc() int
func (*IDAllocator) Free ¶
func (this *IDAllocator) Free(id int)
func (*IDAllocator) InitByHistory ¶
func (this *IDAllocator) InitByHistory(historySlice []int)
type StringSlice ¶
type StringSlice []string
func NewStringSlice ¶
func NewStringSlice() StringSlice
func (*StringSlice) Add ¶
func (this *StringSlice) Add(elem string) error
func (*StringSlice) Remove ¶
func (this *StringSlice) Remove(elem string) error
Click to show internal directories.
Click to hide internal directories.