Golang if else

The if...else statement is used to execute a block of code among two alternatives:

if number > 0 {
    fmt.Printf("%d is positive\n", number)
} else {
    fmt.Printf("%d is negative\n", number)
}