diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-27 11:14:15 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-27 11:14:15 +0800 |
| commit | c6f91b272056255edbacf0d81b75b5995febf175 (patch) | |
| tree | 6da5578ba0baa5333735f18ad6ad750df03717bf | |
| parent | 2447724fe676bff78e31e0c245b65e1f1608010e (diff) | |
style: run gofmt
| -rw-r--r-- | router.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -38,7 +38,6 @@ func (r *Router) Find(method string, path string) (Handler, map[string]string) { continue } - // compare each segment params := make(map[string]string) matched := true @@ -70,8 +69,8 @@ func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { return } handler(&Context{ - W: w, - R: req, - Params: params, + W: w, + R: req, + Params: params, }) } |
