if, switch, goto / if statement / Essential Go

Run Settings
LanguageGo
Language Version
Run Command
package main import "fmt" func returnValues(ok bool) (int, bool) { return 5, ok } func main() { a := 5 b := 5 if a == b { fmt.Print("a is equal to b\n") } else { fmt.Print("a is not equal to b\n") } if n, ok := returnValues(true); ok { fmt.Printf("ok is true, n: %d\n", n) } else { fmt.Printf("ok is false, n: %d\n", n) } }
Editor Settings
Theme
Key bindings
Full width
Lines