BaseRouter is used as the base class when implementing a router. Depending on the needs, the methods of this base class can be overridden. (实现router时,先嵌入这个基类,然后根据需要对这个基类的方法进行重写)
| 11 | // Depending on the needs, the methods of this base class can be overridden. |
| 12 | // (实现router时,先嵌入这个基类,然后根据需要对这个基类的方法进行重写) |
| 13 | type BaseRouter struct{} |
| 14 | |
| 15 | // Here, all of BaseRouter's methods are empty, because some routers may not want to have PreHandle or PostHandle. |
| 16 | // Therefore, inheriting all routers from BaseRouter has the advantage that PreHandle and PostHandle do not need to be |
nothing calls this directly
no outgoing calls
no test coverage detected