From eb36156c5227be0c676ffd2f46067579d9847a27 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Fri, 21 Jul 2023 16:26:43 -0500 Subject: [PATCH] Change function name to ProcessGroup --- middleware/wrapper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/wrapper.go b/middleware/wrapper.go index e315c1c..b75ab6b 100644 --- a/middleware/wrapper.go +++ b/middleware/wrapper.go @@ -2,10 +2,10 @@ package middleware import "net/http" -// ProcessMiddleware is a wrapper function for the http.HandleFunc function +// ProcessGroup is a wrapper function for the http.HandleFunc function // that takes the function you want to execute (f) and the middleware you want // to execute (m) this should be used when processing multiple groups of middleware at a time -func ProcessMiddleware(f func(w http.ResponseWriter, r *http.Request), m []func()) func(w http.ResponseWriter, r *http.Request) { +func ProcessGroup(f func(w http.ResponseWriter, r *http.Request), m []func()) func(w http.ResponseWriter, r *http.Request) { for _, middleware := range m { middleware() }