package
Version:
v0.0.0-...-a9cb292
Opens a new window with list of versions in this module.
Published: Nov 13, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Queue 支持任何类型的队列
func (q *Queue) Popo() interface{}
Popo 删除任何类型,并返回删除元素
q := Queue{1}
q.Push(2)
q.Push(3)
fmt.Println(q.Popo())
fmt.Println(q.Popo())
fmt.Println(q.IsEmpty())
fmt.Println(q.Popo())
fmt.Println(q.IsEmpty())
Output:
1
2
false
3
true
func (q *Queue) Push(value interface{})
Push 添加任何类型元素至队列
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.