pipe

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

type Op interface {
	Do() error
}

Op is the common pipe operation. Can be composed into Ops and run as a single unit

type OpFunc

type OpFunc func() error

OpFunc makes it easy to wrap an anonymous function into an Op

func (OpFunc) Do

func (o OpFunc) Do() error

Do implements the Op interface

type OpFuncs

type OpFuncs []func() error

OpFuncs makes it easy to wrap a slice of functions into an Op

func (OpFuncs) Do

func (ops OpFuncs) Do() error

Do implements the Op interface

type Ops

type Ops []Op

Ops can run a slice of Op's in series, stopping on the first error

func (Ops) Do

func (ops Ops) Do() error

Do implements the Op interface

Jump to

Keyboard shortcuts

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