12345678910111213141516171819 |
- package main
- import (
- "fmt"
- "server/initialize"
- "server/router"
- "server/work"
- )
- func main() {
- initRouter := router.InitRouter()
- work.MyJob()
- initialize.InitInductanceTCP()
- err := initRouter.Run(":8222")
- if err != nil {
- fmt.Println("服务器启动失败!")
- }
- }
|