command
module
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Dec 30, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
一些常用辅助函数
用法:
以queue举个例子:其他照葫芦画瓢
go get github.com/Gluoo/commontools/queue
sample代码:
import github.com/Gluoo/commontools/queue
q := &queue.Queue{}
q.Push(1)
q.Push(2)
q.Push(3)
q.Push(4)
q.Push(5)
for !q.Empty() {
fmt.Println(q.Pop())
}
fmt.Println(q.Front())
fmt.Println(q.Rear())
fmt.Println(q.Size())
fmt.Println()
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.