12345678910111213141516171819202122 |
- package main
-
- import (
- _ "XT_Admin_Api/routers"
- "XT_Admin_Api/service"
- "net/http"
-
- "github.com/astaxie/beego"
- _ "net/http/pprof"
- )
-
- func init() {
- service.ConnectDB()
- go func() {
- http.ListenAndServe("localhost:6060", nil)
- }()
- }
-
- func main() {
- beego.Run()
- }
|