Documentation ¶
Overview ¶
Example ¶
package main import ( "fmt" "github.com/weiwenchen2022/pipeline" ) func main() { sq := func(in any) any { n := in.(int) return n * n } result := pipeline.New(2, 3). Through(pipeline.StageFunc(sq)).Out() for v := range result { fmt.Println(v) } }
Output: 4 9
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.