From f15b0c2b4e90ea798a75ede01caceb011ca75b59 Mon Sep 17 00:00:00 2001 From: mehdihadeli Date: Wed, 10 Aug 2022 16:53:40 +0430 Subject: [PATCH] . --- examples/cqrs/cmd/main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/cqrs/cmd/main.go b/examples/cqrs/cmd/main.go index 9c2f8d9..91cdb85 100644 --- a/examples/cqrs/cmd/main.go +++ b/examples/cqrs/cmd/main.go @@ -2,6 +2,11 @@ package main import ( "context" + "log" + "os" + "os/signal" + "syscall" + "github.com/mehdihadeli/go-mediatr" "github.com/mehdihadeli/go-mediatr/examples/cqrs/docs" productApi "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/api" @@ -12,10 +17,6 @@ import ( "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/queries" "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/repository" "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/shared/behaviours" - "log" - "os" - "os/signal" - "syscall" "github.com/labstack/echo/v4" echoSwagger "github.com/swaggo/echo-swagger" @@ -83,6 +84,6 @@ func main() { <-ctx.Done() if err := echo.Shutdown(ctx); err != nil { - log.Fatal("(Shutdown) err: {%v}", err) + log.Fatal("(Shutdown) err", err) } }