()
| 17 | } |
| 18 | |
| 19 | func main() { |
| 20 | if err := InitGlobalConfig(); err != nil { |
| 21 | fmt.Println("failed to init global config:", err) |
| 22 | return |
| 23 | } |
| 24 | if err := InitLog(); err != nil { |
| 25 | fmt.Println("failed to init log:", err) |
| 26 | return |
| 27 | } |
| 28 | if err := InitMysqlConnPool(); err != nil { |
| 29 | fmt.Println("failed to init mysql connection pool:", err) |
| 30 | return |
| 31 | } |
| 32 | if err := InitController(); err != nil { |
| 33 | fmt.Println("failed to init tcp server:", err) |
| 34 | return |
| 35 | } |
| 36 | select {} |
| 37 | } |
nothing calls this directly
no test coverage detected