You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Lookup allows the manual lookup of a method + path combo.
The documentation for the function router.Lookup mentions a third parameter and doesn't match the actual function body:
// Lookup allows the manual lookup of a method + path combo.
// This is e.g. useful to build a framework around this router.
// If the path was found, it returns the handler function and the path parameter
// values. Otherwise the third return value indicates whether a redirection to
// the same path with an extra / without the trailing slash should be performed.
I guess it should be:
// Lookup allows the manual lookup of a method + path combo.
// This is e.g. useful to build a framework around this router.
// If the path was found, it returns the handler function. Otherwise the second return value indicates whether a redirection to
// the same path with an extra / without the trailing slash should be performed.
It also doesn't metion what the ctx value is used for when looking up a handler and i can't really figure out why the ctx is needed here
The text was updated successfully, but these errors were encountered:
router/router.go
Line 260 in cc03ff3
The documentation for the function router.Lookup mentions a third parameter and doesn't match the actual function body:
I guess it should be:
It also doesn't metion what the ctx value is used for when looking up a handler and i can't really figure out why the ctx is needed here
The text was updated successfully, but these errors were encountered: