From 484734ab36b06a9e6d35348e357312d99522302c Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 23 Dec 2020 12:01:05 +0100 Subject: Implemented the configuration file format --- main.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..5ab16fd --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "log" + "shell-game-launcher/config" +) + +func main() { + config, err := config.LoadFile("example/complete.yaml") + if err != nil { + log.Fatal(err) + } + log.Printf("%+v", config) +} -- cgit v1.2.3