Files

21 lines
279 B
Go
Raw Normal View History

2021-09-28 11:47:19 +08:00
package tools
2021-10-13 14:35:24 +08:00
import (
"SciencesServer/config"
"SciencesServer/lib"
"SciencesServer/tools/ip"
)
2021-09-28 11:47:19 +08:00
2021-10-13 14:35:24 +08:00
func initIP() {
2021-09-28 11:47:19 +08:00
_ = ip.Load("./file/ip_chunzhen.txt")
}
2021-10-13 14:35:24 +08:00
func initJSON() {
lib.LoadConfig("./file/area.json", &config.SettingAreaInfo)
}
func Init() {
initIP()
initJSON()
}