Use MarshalIndent for JSON generation
This commit is contained in:
parent
eee2c017dc
commit
fdc0fef6ee
@ -90,7 +90,7 @@ func (cf *confFile) WriteFile() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
js, err := json.Marshal(cf)
|
||||
js, err := json.MarshalIndent(cf, "", "\t")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user