mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
17 lines
279 B
Go
17 lines
279 B
Go
package reborn
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/FloatTech/zbputils/file"
|
|
)
|
|
|
|
// load 加载rate数据
|
|
func load(area *rate, jsonfile string) error {
|
|
data, err := file.GetLazyData(jsonfile, true, true)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return json.Unmarshal(data, area)
|
|
}
|