You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
265 B

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)
}