1package funk 2 3func ShortIf(condition bool, a interface{}, b interface{}) interface{} { 4 if condition { 5 return a 6 } 7 return b 8} 9