container - Common Golang Data Structure

Go code (golang) set of packages that provide common data structure
Installation
To install container, use go get
:
go get github.com/whuhyw/container
This will then make the following packages available to you:
github.com/whuhyw/container/stack
github.com/whuhyw/container/queue
Import the container/stack
package into your code using this template:
package main
import (
"github.com/whuhyw/container/stack"
)
func main() {
s := stack.NewStack()
s.Push("hello")
if !s.Empty(){
s.Pop()
}
}
Staying up to date
To update container to the latest version, use go get -u github.com/whuhyw/container
.
Contributing
Please feel free to submit issues, fork the repository and send pull requests!
When submitting an issue, we ask that you please include a complete test function that demonstrates the issue.
License
This project is licensed under the terms of the MIT license.