Browse Source

Pretty-print default settings json

feature/add-settings
Fabian Vowie 3 years ago
parent
commit
48f82f3891
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