batcher

package
v0.0.0-...-b51443a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillPage

func FillPage(page interface{}, all interface{}, offset, limit int)

FillPage fill page by slice

func Join

func Join(ss [][]int) []int

func Split

func Split(s []int, limit int) [][]int

Types

type Batcher

type Batcher struct {
	// contains filtered or unexported fields
}

func New

func New(total, cntPer int) *Batcher

func (*Batcher) Range

func (b *Batcher) Range(fn func(offset, limit int))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL