sketchiter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Done = errors.New("iteration done")

Functions

This section is empty.

Types

type PageIter

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

PageIter iterates evaluates a sketch for each page within a document.

func NewPageIter

func NewPageIter(s *sketch.Sketch, doc *dossier.Document) *PageIter

func (*PageIter) Next

func (it *PageIter) Next(ctx context.Context) (*sketch.PageReport, error)

Next returns the current page and moves the internal position to the next. Done is returned on all calls after the last page has been returned previously.

Jump to

Keyboard shortcuts

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