Code cleanup and formatting

This commit is contained in:
KS Jannette
2026-05-19 04:09:33 -04:00
parent f67d57fedf
commit 2e30da54e2
9 changed files with 11 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
package httpjson
package handler
import (
"context"

View File

@@ -1,4 +1,4 @@
package httpjson
package handler
import (
"context"

View File

@@ -1,4 +1,4 @@
package httpjson
package handler
import (
"net/http"

View File

@@ -1,4 +1,4 @@
package httpjson
package handler
import (
"io"

View File

@@ -3,7 +3,7 @@ package main
import (
"context"
"github.com/kjannette/go_http_server/cmd/app/handler/httpjson"
"github.com/kjannette/go_http_server/cmd/app/handler"
"github.com/kjannette/go_http_server/internal/config"
"go.uber.org/zap"
@@ -14,7 +14,7 @@ func run(ctx context.Context, cfg *config.Config) error {
lg := zap.L().With(zap.String("app_name", appName), zap.String("app_version", appVersion))
eg, ctx := errgroup.WithContext(ctx)
app, h := httpjson.New(lg)
app, h := handler.New(lg)
serverLog := lg.Named("run_server")
eg.Go(func() error {