pipe

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lift

func Lift[
	P c.Pipeline[T, V],
	T, V any,
](pipeline P) tdl.Pipeline[T, V]

Types

type FromFs

type FromFs[T any] Func[afero.Fs, T]

type FromInput

type FromInput[T any] Func[tdl.Input, T]

type FromReader

type FromReader[T any] Func[io.Reader, T]

type Func

type Func[T, V any] func(T, V) error

func Map

func Map[
	A c.Pipeline[T, V],
	T, V, X, Y any,
](p A, f func(X, Y) (T, V)) Func[X, Y]

func MapA

func MapA[
	PA c.Pipeline[A, T],
	A, B, T any,
](p PA, f func(B) A) Func[B, T]

func MapB

func MapB[
	PA c.Pipeline[T, A],
	A, B, T any,
](p PA, f func(B) A) Func[T, B]

func (Func[T, V]) Execute

func (f Func[T, V]) Execute(source T, sink V) error

type IO

type IO Func[io.Reader, io.Writer]

type ToSink

type ToSink[T any] Func[T, tdl.Sink]

type ToWriter

type ToWriter[T any] Func[T, io.Writer]

Jump to

Keyboard shortcuts

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