service_test.go 237 B

1234567891011121314151617181920
  1. package service
  2. import (
  3. "sync"
  4. "go-common/app/job/main/passport-auth/conf"
  5. )
  6. var (
  7. once sync.Once
  8. s *Service
  9. )
  10. func startService() {
  11. if err := conf.Init(); err != nil {
  12. panic(err)
  13. }
  14. // service init
  15. s = New(conf.Conf)
  16. }