diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-27 10:32:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-27 10:32:22 +0000 |
commit | d7784aa0c412c80cfcb33a29fd1b2ea69dbe8ab8 (patch) | |
tree | f7d340787b36afcb3b78f2a0875c2c9c8419cdec /testing/resources/golang_hooks_repo/golang-hello-world/main.go | |
parent | Releasing debian version 3.0.4-1. (diff) | |
download | pre-commit-d7784aa0c412c80cfcb33a29fd1b2ea69dbe8ab8.tar.xz pre-commit-d7784aa0c412c80cfcb33a29fd1b2ea69dbe8ab8.zip |
Merging upstream version 3.1.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/resources/golang_hooks_repo/golang-hello-world/main.go')
-rw-r--r-- | testing/resources/golang_hooks_repo/golang-hello-world/main.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/testing/resources/golang_hooks_repo/golang-hello-world/main.go b/testing/resources/golang_hooks_repo/golang-hello-world/main.go deleted file mode 100644 index 1685743..0000000 --- a/testing/resources/golang_hooks_repo/golang-hello-world/main.go +++ /dev/null @@ -1,23 +0,0 @@ -package main - - -import ( - "fmt" - "runtime" - "github.com/BurntSushi/toml" - "os" -) - -type Config struct { - What string -} - -func main() { - message := runtime.Version() - if len(os.Args) > 1 { - message = os.Args[1] - } - var conf Config - toml.Decode("What = 'world'\n", &conf) - fmt.Printf("hello %v from %s\n", conf.What, message) -} |