8209b40526
The original contents of `vendor` were inadvertently captured with an older version of `godep`. Here, we recapture dependencies by running the following: ``` godep restore -v cat Godeps/Godeps.json | jq -r '.Deps[].ImportPath' | xargs godep update -v ``` The newer godep makes the following changes as it captures dependencies: * Skips test files * Copies `LICENSE` / `PATENTS` files There is also an additional diff in `golang.org/x/sys/unix` that looks very similar to the diff between `master..c65f27f` in that repo, so I'm guessing that dependency was accidentally captured from master instead of the commit saved to `Godeps.json`. All in all, these changes should all be "more correct" and result in smaller diffs for any future updates made to dependencies. |
||
---|---|---|
.. | ||
.gitignore | ||
LICENSE | ||
README.md | ||
circbuf.go |
README.md
circbuf
This repository provides the circbuf
package. This provides a Buffer
object
which is a circular (or ring) buffer. It has a fixed size, but can be written
to infinitely. Only the last size
bytes are ever retained. The buffer implements
the io.Writer
interface.
Documentation
Full documentation can be found on Godoc
Usage
The circbuf
package is very easy to use:
buf, _ := NewBuffer(6)
buf.Write([]byte("hello world"))
if string(buf.Bytes()) != " world" {
panic("should only have last 6 bytes!")
}