From 8ce7009ed0d4c2dfe8be51321502882d7d9243b6 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 9 Apr 2020 17:32:16 +0200 Subject: [PATCH] Initial commit --- .vscode/launch.json | 17 +++++++++++++++++ config.go | 6 ++++++ main.go | 9 +++++++++ run.sh | 2 ++ 4 files changed, 34 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 config.go create mode 100644 main.go create mode 100755 run.sh diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2978dcf --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${fileDirname}", + "env": {}, + "args": [] + } + ] +} \ No newline at end of file diff --git a/config.go b/config.go new file mode 100644 index 0000000..94dae1c --- /dev/null +++ b/config.go @@ -0,0 +1,6 @@ +package main + +// Value Main value +func Name() string { + return "pierre" +} diff --git a/main.go b/main.go new file mode 100644 index 0000000..1fc419b --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Println("secret", Name()) +} diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..8e25426 --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +go run *