13 lines
922 B
Markdown
13 lines
922 B
Markdown
[![GoDoc](https://godoc.org/github.com/dsoprea/go-utility/data?status.svg)](https://godoc.org/github.com/dsoprea/go-utility/data)
|
|
[![Build Status](https://travis-ci.org/dsoprea/go-utility.svg?branch=master)](https://travis-ci.org/dsoprea/go-utility)
|
|
[![Coverage Status](https://coveralls.io/repos/github/dsoprea/go-utility/badge.svg?branch=master)](https://coveralls.io/github/dsoprea/go-utility?branch=master)
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-utility)](https://goreportcard.com/report/github.com/dsoprea/go-utility)
|
|
|
|
# lru
|
|
|
|
An LRU implementation. Accessors available for the first item, last item, list of all keys, count, fullness, membership checks, explicit drops, and popping the oldest in a loop. You can also set a callback for when items are dropped and dump the current contents of the LRU.
|
|
|
|
# mimetype
|
|
|
|
Convenience function for determining a mime-type from an `io.Reader`.
|