With returns an Engine with the configuration set in the OptionFunc.
(opts ...OptionFunc)
| 346 | |
| 347 | // With returns an Engine with the configuration set in the OptionFunc. |
| 348 | func (engine *Engine) With(opts ...OptionFunc) *Engine { |
| 349 | for _, opt := range opts { |
| 350 | opt(engine) |
| 351 | } |
| 352 | |
| 353 | return engine |
| 354 | } |
| 355 | |
| 356 | func (engine *Engine) rebuild404Handlers() { |
| 357 | engine.allNoRoute = engine.combineHandlers(engine.noRoute) |
no outgoing calls