mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-03-14 13:56:26 -05:00
19 lines
200 B
Go
19 lines
200 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"flag"
|
||
|
|
"go-common/app/admin/main/relation/conf"
|
||
|
|
)
|
||
|
|
|
||
|
|
var s *Service
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
flag.Parse()
|
||
|
|
|
||
|
|
if err := conf.Init(); err != nil {
|
||
|
|
panic(err)
|
||
|
|
}
|
||
|
|
|
||
|
|
s = New(conf.Conf)
|
||
|
|
}
|