Is there a reason why these must be called on the vestigo package instead of on the router? If someone wanted to use more than one router, they couldn't set this methods on the individual instances of the router. It also complicates testing because you can't guarantee state.
vestigo.AllowTrace = true
vestigo.CustomNotFoundHandlerFunc(fn)
vestigo.CustomMethodNotAllowedHandlerFunc(fn)
vestigo.Param(r, name)
Is there a reason why these must be called on the vestigo package instead of on the router? If someone wanted to use more than one router, they couldn't set this methods on the individual instances of the router. It also complicates testing because you can't guarantee state.
vestigo.AllowTrace = true
vestigo.CustomNotFoundHandlerFunc(fn)
vestigo.CustomMethodNotAllowedHandlerFunc(fn)
vestigo.Param(r, name)