From 3187472744cfb88a27f2b0e5aef95f793f82ec23 Mon Sep 17 00:00:00 2001 From: Fenny <25108519+Fenny@users.noreply.github.com> Date: Sat, 20 Jun 2020 17:27:40 +0200 Subject: [PATCH] Update router.go --- router.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/router.go b/router.go index 40acb9dc..29db32dd 100644 --- a/router.go +++ b/router.go @@ -37,14 +37,13 @@ type Router interface { // Route is a struct that holds all metadata for each registered handler type Route struct { // Data for routing - pos int // Position in stack - use bool // USE matches path prefixes - star bool // Path equals '*' - root bool // Path equals '/' - path string // Prettified path - allowedMethods string // Methods that are allowed on this route - routeParser routeParser // Parameter parser - routeParams []string // Case sensitive param keys + pos int // Position in stack + use bool // USE matches path prefixes + star bool // Path equals '*' + root bool // Path equals '/' + path string // Prettified path + routeParser routeParser // Parameter parser + routeParams []string // Case sensitive param keys // Public fields Path string // Original registered route path