()
| 85 | } |
| 86 | |
| 87 | func ExampleOfLambdaInChain() { |
| 88 | chain := compose.NewChain[string, string]() |
| 89 | chain.AppendLambda(compose.InvokableLambda(func(ctx context.Context, input string) (string, error) { |
| 90 | // some logic |
| 91 | return "", nil |
| 92 | })) |
| 93 | |
| 94 | _ = chain |
| 95 | } |
| 96 | |
| 97 | func ExampleOfLambdaInGraph() { |
| 98 | graph := compose.NewGraph[string, *MyStruct]() |
nothing calls this directly
no outgoing calls
no test coverage detected