var n = -42//Go 没有三元运算符var classify = (map[bool]string {true: "positive", false: "negative"})[n > 0]//classify is "negative"