mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-07-03 04:43:26 +00:00
Enhancement: Add indent to the config.go
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user