MCPcopy Create free account
hub / github.com/egonelbre/exp / Run

Method Run

fbp/example/main.go:50–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49func NewSplit() fbp.Node { return &Split{} }
50func (node *Split) Run() error {
51 defer close(node.Left)
52 defer close(node.Right)
53 for v := range node.In {
54 m := len(v) / 2
55 node.Left <- v[:m]
56 node.Right <- v[m:]
57 }
58 return nil
59}
60
61type Lower struct{ In, Out chan string }
62

Callers

nothing calls this directly

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected