Parcourir la source

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

田欧 il y a 7 ans
Parent
commit
f2cd3fcb2a
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      debug.go
  2. 1 1
      routergroup.go

+ 1 - 0
debug.go

@@ -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) {

+ 1 - 1
routergroup.go

@@ -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