From 18bf623114de33a34377239c4c878adaf2187bef Mon Sep 17 00:00:00 2001 From: mstar <me@mstar.dev> Date: Tue, 4 Mar 2025 13:56:57 +0100 Subject: [PATCH] Restructure all http related files Moving all http related functions and helpers into a new http submodule --- {middleware => http}/chain.go | 2 +- {middleware => http}/context.go | 2 +- {other => http}/httpErr.go | 2 +- {middleware => http}/zerolog.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename {middleware => http}/chain.go (93%) rename {middleware => http}/context.go (95%) rename {other => http}/httpErr.go (97%) rename {middleware => http}/zerolog.go (97%) diff --git a/middleware/chain.go b/http/chain.go similarity index 93% rename from middleware/chain.go rename to http/chain.go index 2cf765e..aa1983a 100644 --- a/middleware/chain.go +++ b/http/chain.go @@ -1,4 +1,4 @@ -package middleware +package http import ( "net/http" diff --git a/middleware/context.go b/http/context.go similarity index 95% rename from middleware/context.go rename to http/context.go index 2df158c..ad6619e 100644 --- a/middleware/context.go +++ b/http/context.go @@ -1,4 +1,4 @@ -package middleware +package http import ( "context" diff --git a/other/httpErr.go b/http/httpErr.go similarity index 97% rename from other/httpErr.go rename to http/httpErr.go index d36574d..982719f 100644 --- a/other/httpErr.go +++ b/http/httpErr.go @@ -1,4 +1,4 @@ -package other +package http import ( "fmt" diff --git a/middleware/zerolog.go b/http/zerolog.go similarity index 97% rename from middleware/zerolog.go rename to http/zerolog.go index 04a9eaf..70e8caa 100644 --- a/middleware/zerolog.go +++ b/http/zerolog.go @@ -1,4 +1,4 @@ -package middleware +package http import ( "net/http"