mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-20 07:50:25 +00:00
Auto init settings if config doesn't exist
This commit is contained in:
parent
d2f8adb8ff
commit
199d65017f
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ var (
|
|||
parsedSettings map[string]interface{}
|
||||
)
|
||||
|
||||
func init() {
|
||||
parsedSettings = make(map[string]interface{})
|
||||
}
|
||||
|
||||
// Options with validators
|
||||
var optionValidators = map[string]optionValidator{
|
||||
"autosave": validateNonNegativeValue,
|
||||
|
|
|
|||
Loading…
Reference in a new issue