Simple batch library for Golang.
Go get:
$ go get github.com/travisjeffery/go-batcher
batcher := batcher.New(5 * time.Second, func(batch []interface{}) {
// do something with the batch
})
batcher.Batch(interface{}{})
batcher.Batch(interface{}{})
batcher.Batch(interface{}{})
// etc.
Travis Jeffery
MIT