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:
parent
7e4d55e440
commit
9b7ba6fda6
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user