check Assets

This commit is contained in:
shoopea 2019-12-26 12:34:39 +08:00
parent fb062c2ad9
commit 7728bcd28f

View File

@ -97,6 +97,13 @@ func main() {
err := gcfg.ReadFileInto(&cfg, *config)
failOnError(err, "Parsing config")
bs, err := Asset("data/code_obj_type.json")
failOnError(err, "data/code_obj_type.json")
bs, err = Asset("data/code_obj_type.json")
failOnError(err, "data/code_obj_sub_type.json")
bs, err = Asset("data/code_obj_type.json")
failOnError(err, "data/msg_rules.json")
// Connecting to DB
switch cfg.SQL.Driver {
case "mysql":