go-batch Type-safe batching library for Go with 1.18+ Generics forked from google.golang.org/api/support/bundler. Installation $ go get -u github.com/k-yomo/go-batch Example batcher := batch.New(func (items []int) { fmt.Printf("%+v", items) }) batcher.Add(1, 1)