changedetector

package
v0.0.0-...-f8c32d9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

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

detects changes in content given by it. the first "iteration" is always regarded as changed

func New

func New() *Detector

func (*Detector) ReaderChanged

func (c *Detector) ReaderChanged(content io.Reader) (bool, error)

func (*Detector) WriterChanged

func (c *Detector) WriterChanged(produce func(sink io.Writer) error) (bool, error)

Jump to

Keyboard shortcuts

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