dao_test.go 262 B

12345678910111213141516171819
  1. package usersuit
  2. import (
  3. "flag"
  4. "go-common/app/interface/main/account/conf"
  5. )
  6. var d *Dao
  7. func init() {
  8. flag.Parse()
  9. flag.Set("conf", "../../cmd/account-interface-example.toml")
  10. if err := conf.Init(); err != nil {
  11. panic(err)
  12. }
  13. d = New(conf.Conf)
  14. }