Conditional - If, Else if, Else Here's an example of using if and else package main import ( "fmt" ) func main() { x := 42 if x == 40 { fmt.Println("Our value was 40") } else { fmt.Println("Our value was not 40") ...

Markdown supported · ⌘↵ to post
No responses yet.