Skip to content

jasocox/figo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

figo - A FIFO queue for Go

figo is a FIFO for Go (Thanks @Corey_Latislaw for the name!). It is possible to iterate through the queue, if necessary.

There is additionally a thread safe version. Since it adds a bit of overhead, only use it if you need it.

figo has an MIT license and can be viewed in the LICENSE file.

Example Usage

import "github.com/jasocox/figo"

q := figo.New()
q.Push(1)
q.Push(2)

for elem := q.Front(); elem != nil; elem = q.Next(elem) {
	fmt.Printf("%d ", elem.Value)
}

q.Pop()
q.Pop()

To make a thread safe version:

q := figo.NewAsync()

Documentation

Can be found here: godocs

About

Thread safe fifo queue for Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages