diff options
author | Julien Dessaux | 2020-12-26 12:54:42 +0100 |
---|---|---|
committer | Julien Dessaux | 2020-12-26 12:54:42 +0100 |
commit | bbea9342330ff020b8e3094c849db88719915132 (patch) | |
tree | bee0f9b036947e2b03a10192d0927dfe5e0f6711 /config/game.go | |
parent | Began implementing config validation (diff) | |
download | shell-game-launcher-bbea9342330ff020b8e3094c849db88719915132.tar.gz shell-game-launcher-bbea9342330ff020b8e3094c849db88719915132.tar.bz2 shell-game-launcher-bbea9342330ff020b8e3094c849db88719915132.zip |
Continued implementing config validation
Diffstat (limited to '')
-rw-r--r-- | config/game.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/game.go b/config/game.go index 5520659..c34c697 100644 --- a/config/game.go +++ b/config/game.go @@ -21,7 +21,7 @@ type Game struct { Env map[string]string `yaml:"Env"` } -func (a *Game) validate(name string) error { +func (g *Game) validate(name string) error { // Game name if ok := reValidGameName.MatchString(name); !ok { return errors.New("Invalid Game name, must match regex `^[\\w\\._]+$` : " + name) |