Documentation
¶
Index ¶
- type Fifo
- func (b *Fifo) Add(item interface{})
- func (b *Fifo) EqualAt(item interface{}) int
- func (b *Fifo) GetItems() interface{}
- func (f *Fifo) Gets() []interface{}
- func (b *Fifo) Insert(item interface{}, i int)
- func (f *Fifo) Push(item interface{})
- func (b *Fifo) PushBack(item interface{})
- func (b *Fifo) PushFront(item interface{})
- func (f *Fifo) PushGrab(item interface{})
- func (b *Fifo) Replace(item interface{}, i int)
- func (b *Fifo) ReplaceBack(item interface{}, i int)
- func (b *Fifo) ReplaceFront(item interface{}, i int)
- type Lifo
- func (b *Lifo) Add(item interface{})
- func (b *Lifo) EqualAt(item interface{}) int
- func (b *Lifo) GetItems() interface{}
- func (f *Lifo) Gets() []interface{}
- func (b *Lifo) Insert(item interface{}, i int)
- func (f *Lifo) Push(item interface{})
- func (b *Lifo) PushBack(item interface{})
- func (b *Lifo) PushFront(item interface{})
- func (f *Lifo) PushGrab(item interface{})
- func (b *Lifo) Replace(item interface{}, i int)
- func (b *Lifo) ReplaceBack(item interface{}, i int)
- func (b *Lifo) ReplaceFront(item interface{}, i int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fifo ¶
type Fifo struct {
// contains filtered or unexported fields
}
Fifo 先进先出排序(去重)
func (*Fifo) ReplaceBack ¶
func (b *Fifo) ReplaceBack(item interface{}, i int)
ReplaceBack 替换i位置且将item插入到头尾部
func (*Fifo) ReplaceFront ¶
func (b *Fifo) ReplaceFront(item interface{}, i int)
ReplaceFront 替换i位置且将item插入到头部
type Lifo ¶
type Lifo struct {
// contains filtered or unexported fields
}
Lifo 先进后出排序(去重)
func (*Lifo) ReplaceBack ¶
func (b *Lifo) ReplaceBack(item interface{}, i int)
ReplaceBack 替换i位置且将item插入到头尾部
func (*Lifo) ReplaceFront ¶
func (b *Lifo) ReplaceFront(item interface{}, i int)
ReplaceFront 替换i位置且将item插入到头部
Click to show internal directories.
Click to hide internal directories.