mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-03-14 13:56:26 -05:00
18 lines
265 B
Go
18 lines
265 B
Go
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)
|
|
}
|