If and else
If-statements can have a short statement, e. g., for declaring the variable used:
The variables used are only available in the scope of the if-statement.
Switch
The default is only run when no other case is matching:
Switch instead of if-else
Switch can be used to replace if-else in a cleaner way sometimes:
Next Chapter: For loops in Go