var n = -42//Go doesn't have the ternary operatorvar classify = (map[bool]string {true: "positive", false: "negative"})[n > 0]//classify is "negative"