Use MarshalIndent for JSON generation

This commit is contained in:
Jakob Unterwurzacher 2015-09-14 00:45:41 +02:00
parent eee2c017dc
commit fdc0fef6ee

View File

@ -90,7 +90,7 @@ func (cf *confFile) WriteFile() error {
if err != nil { if err != nil {
return err return err
} }
js, err := json.Marshal(cf) js, err := json.MarshalIndent(cf, "", "\t")
if err != nil { if err != nil {
return err return err
} }