From 301c7a42bde10cad814f9caa9f6320356734f499 Mon Sep 17 00:00:00 2001 From: Jason Cameron Date: Sun, 27 Apr 2025 09:36:39 -0400 Subject: refactor(lib): Split up anubis.go into some smaller files. (#379) * refactor(logging): centralize logger creation in GetLogger function Signed-off-by: Jason Cameron * refactor(logging): rename GetLogger to GetRequestLogger for clarity Signed-off-by: Jason Cameron * refactor: streamline error handling and response methods Signed-off-by: Jason Cameron * refactor(lib): Split anubis.go up into some smaller specialized methods Signed-off-by: Jason Cameron * refactor(http): simplify error response handling by using respondWithStatus Signed-off-by: Jason Cameron * chore(lib): run goimports Signed-off-by: Xe Iaso --------- Signed-off-by: Jason Cameron Signed-off-by: Xe Iaso Co-authored-by: Xe Iaso --- go.mod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'go.mod') diff --git a/go.mod b/go.mod index aa1c5e0..b934937 100644 --- a/go.mod +++ b/go.mod @@ -40,9 +40,9 @@ require ( github.com/prometheus/procfs v0.15.1 // indirect golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect golang.org/x/mod v0.24.0 // indirect - golang.org/x/sync v0.12.0 // indirect + golang.org/x/sync v0.13.0 // indirect golang.org/x/sys v0.32.0 // indirect - golang.org/x/tools v0.31.0 // indirect + golang.org/x/tools v0.32.0 // indirect google.golang.org/protobuf v1.36.5 // indirect honnef.co/go/tools v0.6.1 // indirect k8s.io/apimachinery v0.32.3 // indirect @@ -52,6 +52,7 @@ require ( tool ( github.com/a-h/templ/cmd/templ + golang.org/x/tools/cmd/goimports golang.org/x/tools/cmd/stringer honnef.co/go/tools/cmd/staticcheck ) -- cgit v1.2.3