main.go 267B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. _ "XT_Admin_Api/routers"
  4. "XT_Admin_Api/service"
  5. "net/http"
  6. "github.com/astaxie/beego"
  7. _ "net/http/pprof"
  8. )
  9. func init() {
  10. service.ConnectDB()
  11. go func() {
  12. http.ListenAndServe("localhost:6060", nil)
  13. }()
  14. }
  15. func main() {
  16. beego.Run()
  17. }