go_container

module
v0.0.0-...-eeed139 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2012 License: BSD-3-Clause

README

go_container

Container Classes in Go

PACKAGES:

import "github.com/iNamik/go_container/queue"

The 'queue' package implements an unbounded FIFO with the following interface:

// queue.Interface
type Interface interface {
	Add       (interface{})
	Remove    ()    interface{}
	Peek      (int) interface{}
	Clear     ()
	Len       () int
	Empty     () bool
	Cap       () int
	AtCapactiy() bool
}
import "github.com/iNamik/go_container/ring"

The 'ring' package implements a bounded FIFO using the 'queue' interface

import "github.com/iNamik/go_container/stack"

The 'stack' package implements an unbounded FILO using the 'queue' interface

INSTALL:

The packages are built using the Go tool. Assuming you have correctly set the $GOPATH variable, you can run the folloing command(s):

go get github.com/iNamik/go_container/queue
go get github.com/iNamik/go_container/ring
go get github.com/iNamik/go_container/stack

AUTHORS:

  • David Farrell

Directories

Path Synopsis
Package queue implements an unbounded First-In-First-Out queue.
Package queue implements an unbounded First-In-First-Out queue.
Package ring implements a bounded First-In-First-Out queue, conforming to the iNamik Queue interface.
Package ring implements a bounded First-In-First-Out queue, conforming to the iNamik Queue interface.
Package stack implements a First-In-First-Out stack, conforming to the iNamik Queue interface.
Package stack implements a First-In-First-Out stack, conforming to the iNamik Queue interface.

Jump to

Keyboard shortcuts

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