mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-09-03 08:08:04 -05:00
18 lines
251 B
Go
18 lines
251 B
Go
|
|
package http
|
||
|
|
|
||
|
|
import (
|
||
|
|
"flag"
|
||
|
|
"path/filepath"
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"go-common/app/service/main/up/conf"
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
dir, _ := filepath.Abs("../cmd/upcredit-service.toml")
|
||
|
|
flag.Set("conf", dir)
|
||
|
|
conf.Init()
|
||
|
|
// Init(conf.Conf)
|
||
|
|
time.Sleep(time.Second)
|
||
|
|
}
|