mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-23 21:34:47 +02:00
17 lines
190 B
Go
17 lines
190 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
test()
|
|
fmt.Println(1)
|
|
goto myLable
|
|
fmt.Println(2)
|
|
myLable:
|
|
fmt.Println(3)
|
|
}
|
|
|
|
func test() {
|
|
goto myLable // error: label myLable not defined
|
|
}
|