chore: fix typo and add a little anotation (#1562)

This commit is contained in:
田欧 2018-09-20 11:53:58 +08:00 committed by Bo-Yi Wu
parent c617b6241a
commit f2cd3fcb2a
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ func IsDebugging() bool {
return ginMode == debugCode
}
// DebugPrintRouteFunc indicates debug log output format.
var DebugPrintRouteFunc func(httpMethod, absolutePath, handlerName string, nuHandlers int)
func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {

View File

@ -17,7 +17,7 @@ type IRouter interface {
Group(string, ...HandlerFunc) *RouterGroup
}
// Iroutes defins all router handle interface.
// IRoutes defines all router handle interface.
type IRoutes interface {
Use(...HandlerFunc) IRoutes