1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-23 21:34:47 +02:00
Files
go_basics/part_1/1.12/2.go
Stanislav Chernyshev 957812f20b 2-е издание
2025-08-09 10:53:13 +03:00

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
}