From 7e6386e69974c3ec09448a74516510c4738a069e Mon Sep 17 00:00:00 2001 From: Arystan Date: Mon, 19 Feb 2024 14:58:57 +0700 Subject: [PATCH] changed var declaration to const --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 818448a4..fde00cb3 100644 --- a/router.go +++ b/router.go @@ -124,7 +124,7 @@ func ParamsFromContext(ctx context.Context) Params { // MatchedRoutePathParam is the Param name under which the path of the matched // route is stored, if Router.SaveMatchedRoutePath is set. -var MatchedRoutePathParam = "$matchedRoutePath" +const MatchedRoutePathParam = "$matchedRoutePath" // MatchedRoutePath retrieves the path of the matched route. // Router.SaveMatchedRoutePath must have been enabled when the respective