You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
324 B

package service
import (
"flag"
"fmt"
"path/filepath"
"go-common/app/interface/main/favorite/conf"
)
var (
s *Service
)
func init() {
dir, _ := filepath.Abs("../cmd/favorite-test.toml")
flag.Set("conf", dir)
if err := conf.Init(); err != nil {
fmt.Printf("conf.Init() error(%v)", err)
}
s = New(conf.Conf)
}