Go continue

Last Updated: March 21, 2022

Skip the current iteration and start the next iteration in GO language you can use the continue statement

 for n := 0; n <= 5; n++ {
        if n%2 == 0 {
            continue
        }
        fmt.Println(n)
  }
Test