From ce6d3d54655f8a21d82c66ba3773019ca959d432 Mon Sep 17 00:00:00 2001 From: Mehmet Sezer Date: Tue, 9 Jul 2024 14:26:09 +0300 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 47743c9..ea0c83f 100644 --- a/README.md +++ b/README.md @@ -50,24 +50,24 @@ func main() { ``` go p := pipeline.Builder[*int]{}. - UseConditionalStepBuilder( - pipeline.NewConditionalStepBuilder[*int](). - Condition(func(context *int) bool { - return *context == 3 - }). - IfTrue(Square{}). - IfFalse(Add{}), - ).UsePipelineStep(Add{}).Build() + UseConditionalStepBuilder( + pipeline.NewConditionalStepBuilder[*int](). + Condition(func(context *int) bool { + return *context == 3 + }). + IfTrue(Square{}). + IfFalse(Add{}), + ).UsePipelineStep(Add{}).Build() - nm := 3 - _ = p.Execute(&nm) +nm := 3 +_ = p.Execute(&nm) - // nm 18 +// nm 18 - nm = 4 - _ = p.Execute(&nm) +nm = 4 +_ = p.Execute(&nm) - // nm 16 +// nm 16 ``` [doc-img]: https://godoc.org/github.com/mhmtszr/pipeline?status.svg [doc]: https://godoc.org/github.com/mhmtszr/pipeline