package util func If(isOk bool, trueValue, falseValue interface{}) interface{} { if isOk { return trueValue } return falseValue }