commontools

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 4 Imported by: 0

README

commontools

一些常用辅助函数

用法: 以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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL