main.go 192B

123456789101112131415161718
  1. package main
  2. import (
  3. _ "XT_Admin_Api/routers"
  4. "XT_Admin_Api/service"
  5. "github.com/astaxie/beego"
  6. _ "net/http/pprof"
  7. )
  8. func init() {
  9. service.ConnectDB()
  10. }
  11. func main() {
  12. beego.Run()
  13. }