go-common/app/interface/live/push-live/dao/d_test.go

18 lines
265 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"flag"
"go-common/app/interface/live/push-live/conf"
"path/filepath"
)
var d *Dao
func initd() {
dir, _ := filepath.Abs("../cmd/push-live-test.toml")
flag.Set("conf", dir)
flag.Set("conf_env", "uat")
conf.Init()
d = New(conf.Conf)
}