From 6995b264d805e94b2a1aa0fe51e96d78b7dc7002 Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 14 Nov 2016 08:59:08 +0100 Subject: [PATCH] settings struct --- settings/settings.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/settings/settings.go b/settings/settings.go index fde20e8..0bd4afd 100644 --- a/settings/settings.go +++ b/settings/settings.go @@ -13,19 +13,20 @@ type Settings struct { } type Config struct { - Flimit uint64 `yaml:"flimit,omitempty"` + Flimit uint64 `yaml:"flimit"` } type Server struct { - Enabled bool `yaml:"enable,omitempty"` - Open bool `yaml:"open,omitempty"` - Host string `yaml:"host,omitempty"` - Port int `yaml:"port,omitempty"` + Enabled bool `yaml:"enable"` + Open bool `yaml:"open"` + Host string `yaml:"host"` + Port int `yaml:"port"` } type Resources struct { - Config string `yaml:"config,omitempty"` - Output string `yaml:"output,omitempty"` + Config string `yaml:"-"` + Output string `yaml:"output"` + Log string `yaml:"log"` } // Flimit defines the max number of watched files