Commit 8094553b authored by Mrs4s's avatar Mrs4s Committed by GitHub

Merge pull request #33 from remiliacn/master

Enhancement: Add indent to the config.go
parents 7e4d55e4 9b7ba6fd
...@@ -99,7 +99,7 @@ func Load(p string) *JsonConfig { ...@@ -99,7 +99,7 @@ func Load(p string) *JsonConfig {
} }
func (c *JsonConfig) Save(p string) error { func (c *JsonConfig) Save(p string) error {
data, err := json.Marshal(c) data, err := json.MarshalIndent(c, "", "\t")
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment