Skip to content

k-yomo/go-batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: BSD 3-Clause Main Workflow codecov Go Report Card

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)