📚 pipeline - Awesome Go Library for Data Structures and Algorithms

Go Gopher mascot for pipeline

An implementation of pipelines with fan-in and fan-out.

🏷️ Data Structures and Algorithms
📂 Frameworks for performing ELT / ETL
57 stars
View on GitHub 🔗

Detailed Description of pipeline

GoDoc Build Status cover.run Go Report Card

pipeline

This package provides a simplistic implementation of Go pipelines as outlined in Go Concurrency Patterns: Pipelines and cancellation.

Docs

GoDoc available here.

Example Usage

import "github.com/hyfather/pipeline"

p := pipeline.New()
p.AddStageWithFanOut(myStage, 10)
p.AddStageWithFanOut(anotherStage, 100)
doneChan := p.Run(inChan)

<- doneChan

More comprehensive examples can be found here.