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

     1  package conditional
     2  
     3  // VoidFunctions execute void functions based on condition
     4  func VoidFunctions(
     5  	isTrue bool,
     6  	trueValueFunctions []func(),
     7  	falseValueFunctions []func(),
     8  ) {
     9  	if isTrue {
    10  		executeVoidFunctions(trueValueFunctions)
    11  	}
    12  
    13  	executeVoidFunctions(falseValueFunctions)
    14  }