Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
/ goods Public archive
forked from emnl/goods

Need data structures for your Go app? We've got the goods.

Notifications You must be signed in to change notification settings

Journera/goods

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goods

Need data structures for your Go app? We've got the goods.

Overview

Goods is a collection of some of the most used data structures around:

  • Linkedlist
  • Queue
  • Stack
  • Binary Tree
  • Red-Black Tree

Linkedlist, Queue, and Stack are completely thread-safe!

Usage

Please see the provided examples.

The tests are a great resources for understanding how Goods should be used. They can be found in each subdir (package) — tests filenames ends with "_test.go".

Goods is abstracted in such a way that you wont have to deal with nodes, only your own values.

Documentation

The Goods API reference is available on GoPkgDoc:

Installation

First (go) get your prefered package:

$ go get github.com/emnl/goods/linkedlist

Then import it into your project:

import "github.com/emnl/goods/linkedlist"

Testing

While in a subdir, just run:

$ go test

All test (from root):

$ sh test.sh

License

Copyright (C) 2012 Emanuel Andersson

MIT License (more info)

About

Need data structures for your Go app? We've got the goods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.6%
  • Shell 0.4%