lecture 65
This commit is contained in:
@@ -2,13 +2,18 @@ package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main () {
|
||||
func main() {
|
||||
i := 0
|
||||
|
||||
loop:
|
||||
if i < 5{
|
||||
if i < 5 {
|
||||
fmt.Println(i)
|
||||
i++
|
||||
goto loop
|
||||
}
|
||||
}
|
||||
// THIS IS AN ERROR
|
||||
// goto todo
|
||||
// x := 5
|
||||
// todo:
|
||||
// fmt.Println("something here")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user