From 57c4f20355f7d431cc258462f3e032477b8b5cd3 Mon Sep 17 00:00:00 2001 From: Francesco Zimbolo Date: Sun, 5 Apr 2026 22:30:57 +0200 Subject: [PATCH] Initial Commit --- .devcontainer/devcontainer.json | 26 ++++++++++++++++++++++++++ .idea/.gitignore | 10 ++++++++++ .idea/go-first-project.iml | 9 +++++++++ .idea/go.imports.xml | 10 ++++++++++ .idea/modules.xml | 8 ++++++++ go.mod | 1 + main.go | 20 ++++++++++++++++++++ 7 files changed, 84 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .idea/.gitignore create mode 100644 .idea/go-first-project.iml create mode 100644 .idea/go.imports.xml create mode 100644 .idea/modules.xml create mode 100644 go.mod create mode 100644 main.go diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..f389af7 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/go . +{ + "name": "Go", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie", + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "go version", + + // Configure tool-specific properties. + "customizations" : { + "jetbrains" : { + "backend" : "GoLand" + } + }, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..30cf57e --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/go-first-project.iml b/.idea/go-first-project.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/go-first-project.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/go.imports.xml b/.idea/go.imports.xml new file mode 100644 index 0000000..644cdf0 --- /dev/null +++ b/.idea/go.imports.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4279eaa --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..c0dbbe4 --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module go-first-project diff --git a/main.go b/main.go new file mode 100644 index 0000000..f182274 --- /dev/null +++ b/main.go @@ -0,0 +1,20 @@ +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 text + // to see how GoLand suggests fixing the warning.

Alternatively, if available, click the lightbulb to view possible fixes.

+ s := "gopher" + fmt.Println("Hello and welcome, %s!", s) + + for i := 1; i <= 5; i++ { + //TIP

To start your debugging session, right-click your code in the editor and select the Debug option.

We have set one breakpoint + // for you, but you can always add more by pressing .

+ fmt.Println("i =", 100/i) + } +}