Simple if in Golang

You can have an if statement without an else:

if num > 0 {
  fmt.Printf("%d is positive\n", num)
}
You don’t need parentheses around conditions in Golang, but that the braces are required