From 921c878abb9fd6657ccbaa650f705d8e2239f1e0 Mon Sep 17 00:00:00 2001 From: Justin Burr Date: Tue, 7 May 2024 03:06:46 +0000 Subject: [PATCH] reduce context struct size from 216 bytes to 208 bytes --- context.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/context.go b/context.go index 82e5f289..e2cd908d 100644 --- a/context.go +++ b/context.go @@ -74,9 +74,8 @@ type Context struct { // patterns across a stack of sub-routers. RoutePatterns []string - // methodNotAllowed hint - methodNotAllowed bool methodsAllowed []methodTyp // allowed methods in case of a 405 + methodNotAllowed bool } // Reset a routing context to its initial state.