-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from GettEngineering/issue-12
Fixes #12
- Loading branch information
Showing
8 changed files
with
187 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ import ( | |
) | ||
|
||
const ( | ||
version = "0.1.4" | ||
version = "0.1.5" | ||
) | ||
|
||
func main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// +build effeinject | ||
|
||
package main | ||
|
||
import ( | ||
"github.com/GettEngineering/effe" | ||
) | ||
|
||
func C() error { | ||
effe.BuildFlow( | ||
effe.Step(step2), | ||
effe.Wrap(effe.Before(step1), | ||
effe.Step(B), | ||
), | ||
effe.Step(step1), | ||
effe.Wrap(effe.Before(step1), | ||
effe.Step(B), | ||
), | ||
) | ||
return nil | ||
} | ||
|
||
func B() error { | ||
effe.BuildFlow( | ||
effe.Step(A), | ||
) | ||
return nil | ||
} | ||
|
||
func A() error { | ||
effe.BuildFlow( | ||
effe.Step(step1), | ||
) | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main | ||
|
||
type stepFunc func() error | ||
|
||
func step1() stepFunc { | ||
return func() error { | ||
return nil | ||
} | ||
} | ||
|
||
func step2() stepFunc { | ||
return func() error { | ||
return nil | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
example.com/foo |
110 changes: 110 additions & 0 deletions
110
testdata/BuildWithRepeatRequirementComponent/want/effe_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.