From 4cc190f7a705f64c368edecd835d5eeeda69f95f Mon Sep 17 00:00:00 2001 From: Fabian Vowie Date: Mon, 17 Jan 2022 12:09:39 +0100 Subject: [PATCH] Pretty-print default settings json --- settings/settings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/settings.go b/settings/settings.go index 6239703..c4186fc 100644 --- a/settings/settings.go +++ b/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) return defaultSettings