main.go 343 B

123456789101112131415161718192021
  1. package main
  2. import (
  3. "kpt.notice/apiserver/config"
  4. "kpt.notice/apiserver/service"
  5. "kpt.notice/local"
  6. // "../config"
  7. // "../local"
  8. // "../service"
  9. )
  10. func main() {
  11. LocalInit()
  12. local.TestMsg()
  13. }
  14. func LocalInit() {
  15. config.Init("/Users/desire/kptdev/notice/cmd/apiserver/conf.toml")
  16. svc := service.New(config.Conf)
  17. local.Init(svc)
  18. }