1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-12 06:45:46 +08:00

Merge pull request #33 from remiliacn/master

Enhancement: Add indent to the config.go
This commit is contained in:
Mrs4s 2020-08-05 09:37:42 +08:00 committed by GitHub
commit 8094553bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }