Documentation
¶
Index ¶
- Variables
- func Copy(src Src, sinks ...Sink) error
- type Sink
- type Src
- func CapSrc(src Src, n int, cont Src) Src
- func CatSrc(srcs ...Src) Src
- func CountSrc(n *int, src Src, cont Src) Src
- func FilterSrc(src Src, predict func(any) bool, cont Src) Src
- func MapSrc(src Src, fn func(any) any, cont Src) Src
- func Seq(values ...any) Src
- func SkipSrc(src Src, n int, cont Src) Src
- func Tee(src Src, sinks ...Sink) Src
- func TeeSrc(src Src, sinks []Sink, cont Src) Src
- type Values
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShortSink = errors.New("short sink")
Functions ¶
Types ¶
type Sink ¶
Sink consumes stream of values
for non-higher-order Sinks, a nil input value indicates the end of stream for higher-order Sinks, a nil input value should pass as-is to argument sinks
func CollectValues ¶
func FilterSink ¶
Click to show internal directories.
Click to hide internal directories.