dao_test.go 251 B

12345678910111213141516171819
  1. package archive
  2. import (
  3. "flag"
  4. "path/filepath"
  5. "go-common/app/job/main/videoup-report/conf"
  6. )
  7. var (
  8. d *Dao
  9. )
  10. func init() {
  11. dir, _ := filepath.Abs("../../cmd/videoup-report-job.toml")
  12. flag.Set("conf", dir)
  13. conf.Init()
  14. d = New(conf.Conf)
  15. }