package main import "fmt2" func main() { var a int = 0 total := 0 skip := 6 LOOP: for a < 10 { if a == skip { a = a + 1 goto LOOP } total += a fmt2.Println("value of a: ", a) a++ } fmt2.Println(total) assert(total == 45 - skip) }