From 8402acf959f8d8c8faad9c8d9e9f28c68b486c74 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 18 Mar 2025 20:10:45 +0800 Subject: Remove underscores from Go code, pt 1 --- http_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http_server.go') diff --git a/http_server.go b/http_server.go index f2238d8..9548a65 100644 --- a/http_server.go +++ b/http_server.go @@ -14,9 +14,9 @@ import ( "go.lindenii.runxiyu.org/lindenii-common/clog" ) -type http_router_t struct{} +type httpRouter struct{} -func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { +func (router *httpRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) { clog.Info("Incoming HTTP: " + r.RemoteAddr + " " + r.Method + " " + r.RequestURI) var segments []string -- cgit v1.2.3