Browse Source

Pretty-print default settings json

feature/update-route-registration
Fabian Vowie 3 years ago
parent
commit
ebb6ec88b3
No known key found for this signature in database GPG Key ID: C27317C33B27C410
  1. 2
      settings/settings.go

2
settings/settings.go

@ -52,7 +52,7 @@ func LoadSettings() Settings {
}, },
} }
serializedSettings, err := json.Marshal(defaultSettings)
serializedSettings, err := json.MarshalIndent(defaultSettings, "", "\t")
os.WriteFile(path, serializedSettings, os.ModePerm) os.WriteFile(path, serializedSettings, os.ModePerm)
return defaultSettings return defaultSettings

Loading…
Cancel
Save