1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

Enhancement: Add indent to the config.go

This commit is contained in:
remiliacn 2020-08-04 18:21:14 -07:00
parent 7e4d55e440
commit 9b7ba6fda6

View File

@ -99,7 +99,7 @@ func Load(p string) *JsonConfig {
}
func (c *JsonConfig) Save(p string) error {
data, err := json.Marshal(c)
data, err := json.MarshalIndent(c, "", "\t")
if err != nil {
return err
}