gitlab.com/evatix-go/core@v1.3.55/conditional/Interface.go (about) 1 package conditional 2 3 func Interface( 4 isTrue bool, 5 trueValue, falseValue interface{}, 6 ) interface{} { 7 if isTrue { 8 return trueValue 9 } 10 11 return falseValue 12 }