From 031c9f6be8c4efed395001e3cbb7b5ec10816b83 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sun, 15 Sep 2024 13:06:40 +0300 Subject: [PATCH] initial commit --- .idea/.gitignore | 8 ++++++++ .idea/go-dsa.iml | 9 +++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ go.mod | 3 +++ main.go | 25 +++++++++++++++++++++++++ 6 files changed, 59 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/go-dsa.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 go.mod create mode 100644 main.go diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/go-dsa.iml b/.idea/go-dsa.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/go-dsa.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..1a92b10 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..00af88c --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module go-dsa + +go 1.22 diff --git a/main.go b/main.go new file mode 100644 index 0000000..91b22d0 --- /dev/null +++ b/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" +) + +//TIP To run your code, right-click the code and select Run. Alternatively, click +// the icon in the gutter and select the Run menu item from here. + +func main() { + //TIP Press when your caret is at the underlined or highlighted text + // to see how GoLand suggests fixing it. + s := "gopher" + fmt.Println("Hello and welcome, %s!", s) + + for i := 1; i <= 5; i++ { + //TIP You can try debugging your code. We have set one breakpoint + // for you, but you can always add more by pressing . To start your debugging session, + // right-click your code in the editor and select the Debug option. + fmt.Println("i =", 100/i) + } +} + +//TIP See GoLand help at jetbrains.com/help/go/. +// Also, you can try interactive lessons for GoLand by selecting 'Help | Learn IDE Features' from the main menu. \ No newline at end of file