mirror of
https://github.com/labstack/echo.git
synced 2025-11-27 22:38:25 +02:00
Improve comments wording
This commit is contained in:
6
echo.go
6
echo.go
@@ -64,7 +64,7 @@ type (
|
|||||||
//
|
//
|
||||||
// Goroutine safety: Do not mutate Echo instance fields after server has started. Accessing these
|
// Goroutine safety: Do not mutate Echo instance fields after server has started. Accessing these
|
||||||
// fields from handlers/middlewares and changing field values at the same time leads to data-races.
|
// fields from handlers/middlewares and changing field values at the same time leads to data-races.
|
||||||
// Same rule applies to adding new routes after server has been started - Adding a route is not Goroutine safe action.
|
// Adding new routes after the server has been started is also not safe!
|
||||||
Echo struct {
|
Echo struct {
|
||||||
filesystem
|
filesystem
|
||||||
common
|
common
|
||||||
@@ -73,8 +73,8 @@ type (
|
|||||||
startupMutex sync.RWMutex
|
startupMutex sync.RWMutex
|
||||||
colorer *color.Color
|
colorer *color.Color
|
||||||
|
|
||||||
// premiddleware are middlewares that are run before routing is done. In case pre-middleware returns an error router
|
// premiddleware are middlewares that are run before routing is done. In case a pre-middleware returns
|
||||||
// will not be called at all and execution ends up in global error handler.
|
// an error the router is not executed and the request will end up in the global error handler.
|
||||||
premiddleware []MiddlewareFunc
|
premiddleware []MiddlewareFunc
|
||||||
middleware []MiddlewareFunc
|
middleware []MiddlewareFunc
|
||||||
maxParam *int
|
maxParam *int
|
||||||
|
|||||||
Reference in New Issue
Block a user