File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6464 //
6565 // Goroutine safety: Do not mutate Echo instance fields after server has started. Accessing these
6666 // fields from handlers/middlewares and changing field values at the same time leads to data-races.
67- // Same rule applies to adding new routes after server has been started - Adding a route is not Goroutine safe action.
67+ // Adding new routes after the server has been started is also not safe!
6868 Echo struct {
6969 filesystem
7070 common
7373 startupMutex sync.RWMutex
7474 colorer * color.Color
7575
76- // premiddleware are middlewares that are run before routing is done. In case pre-middleware returns an error router
77- // will not be called at all and execution ends up in global error handler.
76+ // premiddleware are middlewares that are run before routing is done. In case a pre-middleware returns
77+ // an error the router is not executed and the request will end up in the global error handler.
7878 premiddleware []MiddlewareFunc
7979 middleware []MiddlewareFunc
8080 maxParam * int
You can’t perform that action at this time.
0 commit comments