Skip to content

Basic data structures inside a single Go package

License

Notifications You must be signed in to change notification settings

carljoshua/structs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

structs

Whoo! Data Structures (Only Include Basic Operations)

Installation

Make sure you have you set your GOPATH (https://github.com/golang/go/wiki/GOPATH). Type the command below to install the package.

$ go get github.com/carljoshua/structs

Usage

Import the package and then create the data structure you need. Simple as that. The data structures that are included in this package are:

  • Stack
  • Queue
  • Linked List
  • Heap
package main

import (
    "github.com/carljoshua/structs"
    "reflect"
)

func main(){
  s := structs.NewStack(reflect.Int, 4)
  s.Push(1)
  s.Push(2)
  s.Pop()
}

About

Basic data structures inside a single Go package

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages