From a23264b00f378ac869356213007a5fc5a41be2f6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 5 Sep 2023 06:02:11 +0400 Subject: [PATCH] Added a notice to a comment for Handler() method. --- httpr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/httpr.go b/httpr.go index f2b1352..ad79a10 100644 --- a/httpr.go +++ b/httpr.go @@ -212,6 +212,7 @@ func (rr *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) { } // Handler registers a handler for provided pattern for a given HTTP method. +// Pattern must start with a slash (/) symbol. func (rr *Router) Handler(method, pattern string, handler http.HandlerFunc) error { path, err := newPath(pattern) if err != nil {