feat: squash multiple modules to one

This commit is contained in:
2024-05-08 19:09:33 +03:00
parent 55719b4399
commit fef404f1a7
37 changed files with 37 additions and 491 deletions

14
pipeline/pipeline.go Normal file
View File

@ -0,0 +1,14 @@
package pipeline
func Pipe[In any, Out any](in <-chan In, pipe func(In) Out) <-chan Out {
out := make(chan Out)
go func() {
for n := range in {
out <- pipe(n)
}
close(out)
}()
return out
}