From d84337c8459cd76932b8ae78402f6402cc36a3fe Mon Sep 17 00:00:00 2001 From: kingecg Date: Sun, 17 Dec 2023 10:33:29 +0800 Subject: [PATCH] fix spell --- README.md | 2 +- {hander => handler}/file.go | 0 {hander => handler}/proxy.go | 0 {hander => handler}/proxyupdater.go | 0 server/server.go | 5 ++--- 5 files changed, 3 insertions(+), 4 deletions(-) rename {hander => handler}/file.go (100%) rename {hander => handler}/proxy.go (100%) rename {hander => handler}/proxyupdater.go (100%) diff --git a/README.md b/README.md index df7fd08..d41a8e6 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ RestMux 提供 ### handler -目录 hander +目录 handler 提供文件和代理两种handler 其中proxy handler 提供简单的负载均衡和会话粘滞功能 diff --git a/hander/file.go b/handler/file.go similarity index 100% rename from hander/file.go rename to handler/file.go diff --git a/hander/proxy.go b/handler/proxy.go similarity index 100% rename from hander/proxy.go rename to handler/proxy.go diff --git a/hander/proxyupdater.go b/handler/proxyupdater.go similarity index 100% rename from hander/proxyupdater.go rename to handler/proxyupdater.go diff --git a/server/server.go b/server/server.go index af8bee4..8bf1ede 100644 --- a/server/server.go +++ b/server/server.go @@ -7,9 +7,8 @@ import ( "sort" "strings" - handler "git.pyer.club/kingecg/gohttpd/hander" + handler "git.pyer.club/kingecg/gohttpd/handler" "git.pyer.club/kingecg/gohttpd/model" - "git.pyer.club/kingecg/gologger" logger "git.pyer.club/kingecg/gologger" ) @@ -31,7 +30,7 @@ func (route *Route) ServeHTTP(w http.ResponseWriter, r *http.Request) { } func (route *Route) Match(r *http.Request) bool { - l := gologger.GetLogger("Route") + l := logger.GetLogger("Route") l.Debug(fmt.Sprintf("match route: %s %s", r.Method, r.URL.Path)) if route.Method != "" && route.Method != r.Method { l.Debug("method not match")