d_test.go 265 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "flag"
  4. "go-common/app/interface/live/push-live/conf"
  5. "path/filepath"
  6. )
  7. var d *Dao
  8. func initd() {
  9. dir, _ := filepath.Abs("../cmd/push-live-test.toml")
  10. flag.Set("conf", dir)
  11. flag.Set("conf_env", "uat")
  12. conf.Init()
  13. d = New(conf.Conf)
  14. }