From 62e0326bc9646768429eef28605134e12b858584 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Fri, 29 Dec 2023 01:03:03 -0300 Subject: [PATCH] 10_goto directory created --- 10_goto/main.v | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 10_goto/main.v diff --git a/10_goto/main.v b/10_goto/main.v new file mode 100644 index 0000000..07e4004 --- /dev/null +++ b/10_goto/main.v @@ -0,0 +1,15 @@ +pub fn main(){ + + x := true + y := false + + if x { + if !y { + unsafe { goto my_label } + } + return + } + + my_label: + println('oi') +} \ No newline at end of file