From 2874926fccb67e2480885dd978acbf7e50b998af Mon Sep 17 00:00:00 2001 From: "a.pivkin" Date: Wed, 9 Jul 2025 06:26:44 +0300 Subject: [PATCH] New version of ipdr-daemon --- Lec6/go.mod | 3 +++ Lec6/main.go | 13 +++++++++++++ Lec8/main.go | 8 ++++++++ go.mod | 3 +++ 4 files changed, 27 insertions(+) create mode 100644 Lec6/go.mod create mode 100644 Lec6/main.go create mode 100644 Lec8/main.go create mode 100644 go.mod diff --git a/Lec6/go.mod b/Lec6/go.mod new file mode 100644 index 0000000..a692304 --- /dev/null +++ b/Lec6/go.mod @@ -0,0 +1,3 @@ +module main.go + +go 1.24.4 diff --git a/Lec6/main.go b/Lec6/main.go new file mode 100644 index 0000000..41014da --- /dev/null +++ b/Lec6/main.go @@ -0,0 +1,13 @@ +package main + +import "fmt" + +func main() { + var loop_var int = 10 + + for loop_var <= 20 { + fmt.Printf("Current is %d\n",loop_var) + loop_var++ + } + +} diff --git a/Lec8/main.go b/Lec8/main.go new file mode 100644 index 0000000..363e710 --- /dev/null +++ b/Lec8/main.go @@ -0,0 +1,8 @@ +package main + +import "fmt" + +func main() { + arr := [...]int{10,20,30,40} + fmt.Println("Arr with [...]: ",arr, "Length is: ", len(arr)) +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a692304 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module main.go + +go 1.24.4