check Assets
This commit is contained in:
parent
fb062c2ad9
commit
7728bcd28f
7
main.go
7
main.go
@ -97,6 +97,13 @@ func main() {
|
|||||||
err := gcfg.ReadFileInto(&cfg, *config)
|
err := gcfg.ReadFileInto(&cfg, *config)
|
||||||
failOnError(err, "Parsing 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
|
// Connecting to DB
|
||||||
switch cfg.SQL.Driver {
|
switch cfg.SQL.Driver {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
|
Loading…
Reference in New Issue
Block a user