From bbb3b8d417a6a6afeb828047829eccbc2ec46a56 Mon Sep 17 00:00:00 2001 From: kyasbal Date: Tue, 14 Nov 2023 06:43:31 +0900 Subject: [PATCH] Replace `sloggin` with `slogecho` in example code of slog-echo (#15) `sloggin` is not imported in the example code at the top. It might be forgotten to be replaced --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8175034..6eeab3c 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ e.Logger.Fatal(e.Start(":4242")) ```go logger := slog.New(slog.NewTextHandler(os.Stdout, nil)) -config := sloggin.Config{ +config := slogecho.Config{ WithSpanID: true, WithTraceID: true, } @@ -116,7 +116,7 @@ e.Use(middleware.Recover()) ```go logger := slog.New(slog.NewTextHandler(os.Stdout, nil)) -config := sloggin.Config{ +config := slogecho.Config{ WithRequestBody: true, WithResponseBody: true, WithRequestHeader: true,