gitlab.com/evatix-go/core@v1.3.55/conditional/AnyFunctions.go (about)

     1  package conditional
     2  
     3  func AnyFunctions(
     4  	isTrue bool,
     5  	trueValueFunctions, falseValueFunctions []func() (
     6  		result interface{},
     7  		isTake,
     8  		isBreak bool,
     9  	),
    10  ) []func() (
    11  	result interface{},
    12  	isTake,
    13  	isBreak bool,
    14  ) {
    15  	if isTrue {
    16  		return trueValueFunctions
    17  	}
    18  
    19  	return falseValueFunctions
    20  }