If statements
There is no ternary operator in Go.
if condition1 {
// condition1 is true
} else if condition2 {
// condition2 is true
} else {
// both conditions are false
}
If with a short statement
Variables declared at the start are available inside all branches.