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 {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user