etler

package
v0.0.0-...-5bc2b8c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pipeline

func Pipeline[C any](in []C, concurrent bool, stages ...StageFunc[C]) (out []C, err error)

Pipeline creates a pipeline that processes a slice of values of any type by passing it through a series of stages. Stages can be run concurrently or sequentially, depending on the value of the 'concurrent' flag.

Types

type StageFunc

type StageFunc[C any] func(in []C) (out []C, err error)

StageFunc is a function that transforms a slice of values of any type and returns the transformed slice and any errors that occurred during processing.

Jump to

Keyboard shortcuts

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