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 64
64
//
65
65
// Goroutine safety: Do not mutate Echo instance fields after server has started. Accessing these
66
66
// 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!
68
68
Echo struct {
69
69
filesystem
70
70
common
73
73
startupMutex sync.RWMutex
74
74
colorer * color.Color
75
75
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.
78
78
premiddleware []MiddlewareFunc
79
79
middleware []MiddlewareFunc
80
80
maxParam * int
You can’t perform that action at this time.
0 commit comments