10 lines
150 B
Go
10 lines
150 B
Go
package multistep
|
|
|
|
// if returns step only if on is true.
|
|
func If(on bool, step Step) Step {
|
|
if on == false {
|
|
return &nullStep{}
|
|
}
|
|
return step
|
|
}
|