@@ -205,7 +205,7 @@ func (engine *Engine) allocateContext() *Context {
205
205
return & Context {engine : engine , params : & v , skippedNodes : & skippedNodes }
206
206
}
207
207
208
- // Delims sets template left and right delims and returns a Engine instance.
208
+ // Delims sets template left and right delims and returns an Engine instance.
209
209
func (engine * Engine ) Delims (left , right string ) * Engine {
210
210
engine .delims = render.Delims {Left : left , Right : right }
211
211
return engine
@@ -259,7 +259,7 @@ func (engine *Engine) SetFuncMap(funcMap template.FuncMap) {
259
259
engine .FuncMap = funcMap
260
260
}
261
261
262
- // NoRoute adds handlers for NoRoute. It return a 404 code by default.
262
+ // NoRoute adds handlers for NoRoute. It returns a 404 code by default.
263
263
func (engine * Engine ) NoRoute (handlers ... HandlerFunc ) {
264
264
engine .noRoute = handlers
265
265
engine .rebuild404Handlers ()
@@ -271,7 +271,7 @@ func (engine *Engine) NoMethod(handlers ...HandlerFunc) {
271
271
engine .rebuild405Handlers ()
272
272
}
273
273
274
- // Use attaches a global middleware to the router. ie . the middleware attached through Use() will be
274
+ // Use attaches a global middleware to the router. i.e . the middleware attached through Use() will be
275
275
// included in the handlers chain for every single request. Even 404, 405, static files...
276
276
// For example, this is the right place for a logger or error management middleware.
277
277
func (engine * Engine ) Use (middleware ... HandlerFunc ) IRoutes {
@@ -442,7 +442,7 @@ func (engine *Engine) RunTLS(addr, certFile, keyFile string) (err error) {
442
442
}
443
443
444
444
// RunUnix attaches the router to a http.Server and starts listening and serving HTTP requests
445
- // through the specified unix socket (ie . a file).
445
+ // through the specified unix socket (i.e . a file).
446
446
// Note: this method will block the calling goroutine indefinitely unless an error happens.
447
447
func (engine * Engine ) RunUnix (file string ) (err error ) {
448
448
debugPrint ("Listening and serving HTTP on unix:/%s" , file )
0 commit comments