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 --- config/game.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 config/game.go (limited to 'config/game.go') diff --git a/config/game.go b/config/game.go new file mode 100644 index 0000000..0eea917 --- /dev/null +++ b/config/game.go @@ -0,0 +1,11 @@ +package config + +// Game struct containers the configuration for a game +type Game struct { + // ChrootPath is the chroot path for the game + ChrootPath string `yaml:"ChrootPath"` + // FileMode is the file mode to use when copying files + FileMode string `yaml:"FileMode"` + // Commands is the command list + Commands []string `yaml:"Commands"` +} -- cgit v1.2.3