Golang nested if statement

You can also use an if statement inside of an if statement. This is known as a nested if statement:

if age < 18 {
  fmt.Println("You are Minor. Not eligible to work")
} else {
    if age >= 18 && age <= 62 {
      fmt.Println("You can apply for this position")
      fmt.Println("Please fill your details")
     } else {
         fmt.Println("As per Gov, you are permitted to work")
}