service_test.go 254 B

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