http_test.go 251 B

1234567891011121314151617
  1. package http
  2. import (
  3. "flag"
  4. "path/filepath"
  5. "time"
  6. "go-common/app/service/main/up/conf"
  7. )
  8. func init() {
  9. dir, _ := filepath.Abs("../cmd/upcredit-service.toml")
  10. flag.Set("conf", dir)
  11. conf.Init()
  12. // Init(conf.Conf)
  13. time.Sleep(time.Second)
  14. }