https://github.com/travisjeffery/go-batcher
Simple batch library for Golang.
https://github.com/travisjeffery/go-batcher
Last synced: 9 months ago
JSON representation
Simple batch library for Golang.
- Host: GitHub
- URL: https://github.com/travisjeffery/go-batcher
- Owner: travisjeffery
- Created: 2016-07-10T08:18:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-10T08:22:50.000Z (over 9 years ago)
- Last Synced: 2025-04-15T00:08:01.650Z (9 months ago)
- Language: Go
- Homepage: https://twittter.com/travisjeffery
- Size: 1000 Bytes
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-batcher
Simple batch library for Golang.
## Install
Go get:
```
$ go get github.com/travisjeffery/go-batcher
```
## Example
``` go
batcher := batcher.New(5 * time.Second, func(batch []interface{}) {
// do something with the batch
})
batcher.Batch(interface{}{})
batcher.Batch(interface{}{})
batcher.Batch(interface{}{})
// etc.
```
## Author
Travis Jeffery
- [Twitter](http://twitter.com/travisjeffery)
- [Medium](http://medium.com/@travisjeffery)
- [Homepage](http://travisjeffery.com)
## License
MIT