service_test.go 200 B

123456789101112131415161718
  1. package service
  2. import (
  3. "flag"
  4. "go-common/app/admin/main/relation/conf"
  5. )
  6. var s *Service
  7. func init() {
  8. flag.Parse()
  9. if err := conf.Init(); err != nil {
  10. panic(err)
  11. }
  12. s = New(conf.Conf)
  13. }