From 123d0aea9fb1c13a2f7333e750c14528befa50c6 Mon Sep 17 00:00:00 2001 From: Neeraj319 Date: Sat, 30 Dec 2023 15:08:43 +0545 Subject: [PATCH] feat: fix bug in add route --- router.go | 1 - 1 file changed, 1 deletion(-) diff --git a/router.go b/router.go index 28078b6..dda9675 100644 --- a/router.go +++ b/router.go @@ -176,7 +176,6 @@ func (r *SimpleRouter) AddRoute(path string, function interface{}, http_method H var pathName string if strings.Contains(path, ":") { - var pathName string = "" for index, value := range strings.Split(path, "/") { if value == "" { continue