🔥 replace encoding/json with jsoniter

This commit is contained in:
微凉
2022-01-03 20:25:22 +08:00
parent 7cf30836bf
commit beb06f2f7f
6 changed files with 18 additions and 16 deletions

View File

@ -1,7 +1,6 @@
package bootstrap
import (
"encoding/json"
"github.com/Xhofe/alist/conf"
"github.com/Xhofe/alist/utils"
log "github.com/sirupsen/logrus"
@ -28,7 +27,7 @@ func InitConf() {
log.Fatalf("reading config file error:%s", err.Error())
}
conf.Conf = new(conf.Config)
err = json.Unmarshal(config, conf.Conf)
err = utils.Json.Unmarshal(config, conf.Conf)
if err != nil {
log.Fatalf("load config error: %s", err.Error())
}