Conditions (if / switch)
Parenthesis-free if-else, else if, and multi-branch switch.
Simple enough for a 5-year-old to understand
if / else
In Go, conditions are written WITHOUT parentheses, but { } are mandatory.
package mainimport "fmt"func main() { score := 75 if score >= 50 { fmt.Println("Passed") } else { fmt.Println("Failed") }}