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

     1  package conditional
     2  
     3  func IntegersPtr(
     4  	isTrue bool,
     5  	trueValue, falseValue *[]int,
     6  ) *[]int {
     7  	if isTrue {
     8  		return trueValue
     9  	}
    10  
    11  	return falseValue
    12  }