batch
batch copied to clipboard
Very simple batching API for Go.
https://github.com/uber-go/guide/blob/master/style.md#reduce-scope-of-variables
In the tutorial, the usage of the function is `batchItems := items[start:end]`. Golang slice is exclusive meaning the _end_ is not included in the slice, therefore it should be `batchItems...
The error occurs when: - You pass just one item and it returns null or - When you list elements and never stop at the last item. Example: https://play.golang.org/p/R8TgDSz40Ow Example...
@matryer Thanks for this little code which makes go shine. I have decided to send a PR rather than creating an issue. I just wanted to know your opinions. I...