control
If
if x < 0 && err == nil{
result = "Greater"
} else if x == 0 {
result = "Equal"
} else {
result = "Less"
}Scoping
if x := 42; x < 0 {
//....
}
fmt.Println(x) //WONT WORKSwitch
For
Basic
Over a collections
While
GO-TO!!!
Last updated