diff options
author | Julien Dessaux | 2020-12-23 12:01:05 +0100 |
---|---|---|
committer | Julien Dessaux | 2020-12-23 12:01:05 +0100 |
commit | 484734ab36b06a9e6d35348e357312d99522302c (patch) | |
tree | cb8e57bd56316b1a111ab7a3f13444344deeca2f /main.go | |
parent | Initial import (diff) | |
download | shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.tar.gz shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.tar.bz2 shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.zip |
Implemented the configuration file format
Diffstat (limited to '')
-rw-r--r-- | main.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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) +} |