collections

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: MIT

README

collections

Build Status Coverage Status Go Report Card

some useful datatypes inspired by collections and boltons

Install

go get -u github.com/FelixSeptem/collections
Data Structures
  • queue GoDoc implement a thread safe FILO queue
  • stack GoDoc implement a thread safe FIFO stack
  • deque GoDoc deques are a generalization of stacks and queues ,inspired by deque
  • priority queue GoDoc implement a fix size queue with weight
Cache
  • LRU GoDoc implement a thread safe Least Recently Used ref Code
  • LFU GoDoc implement a thread safe Least Frequently Used ref Code
  • ARC GoDoc implement a thread safe Adaptive Replacement Cache ref Paper:[1][2] Code
Others

Directories

Path Synopsis
Package arc implement Adaptive Replacement Cache inspired by http://code.activestate.com/recipes/576532/
Package arc implement Adaptive Replacement Cache inspired by http://code.activestate.com/recipes/576532/
Package deque implement a fixed size thread safe queue as a generalization of both queue and stack
Package deque implement a fixed size thread safe queue as a generalization of both queue and stack
Package lru implement a thread safe lfu cache
Package lru implement a thread safe lfu cache
Package lru implement a thread safe lru cache inspired by https://github.com/golang/groupcache/tree/master/lru
Package lru implement a thread safe lru cache inspired by https://github.com/golang/groupcache/tree/master/lru
Package priority_queue implement a thread safe priority powered by "container/heap"
Package priority_queue implement a thread safe priority powered by "container/heap"
Package queue implement a simple fix size FILO queue
Package queue implement a simple fix size FILO queue
Package stack implement a simple fix size FIFO stack
Package stack implement a simple fix size FIFO stack

Jump to

Keyboard shortcuts

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