Easily build streamed operations in Go.
pub := NewSlicePublisher([]int{0, 1, 2})
flow := MapFlow(func(i int) string {
return fmt.Sprint(i)
})
sub := NewSliceSubscriber[string]()
pub.Connect(flow)
flow.Connect(sub)
stream := New(pub, flow, sub)
stream.Run()- SlicePublisher
- more to come...
- SliceSubscriber
- more to come...