Check out example codes for "if statements in go". It will help you in understanding the concepts better.

Code Example 1

a := 4
b := 6
if a + b == 10 {
  fmt.Println("a + b is equal to 10!")
} else {
  fmt.Println("a + b does not equal 10...")
}

Learn ReactJs, React Native from akashmittal.com