main.go 278 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "fmt"
  4. "server/initialize"
  5. "server/router"
  6. "server/work"
  7. )
  8. func main() {
  9. initRouter := router.InitRouter()
  10. work.MyJob()
  11. initialize.InitInductanceTCP()
  12. err := initRouter.Run(":8222")
  13. if err != nil {
  14. fmt.Println("服务器启动失败!")
  15. }
  16. }