Files

19 lines
214 B
Go
Raw Permalink Normal View History

2019-04-22 20:46:32 +08:00
package service
import (
"go-common/app/job/main/identify/conf"
"sync"
)
var (
once sync.Once
s *Service
)
func startService() {
if err := conf.Init(); err != nil {
panic(err)
}
s = New(conf.Conf)
}