Skip to content

Commit 79a101d

Browse files
committed
fix: fix package name
1 parent 8bbebc7 commit 79a101d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

logger.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
package main
1+
package echozap
22

33
import (
4+
"time"
5+
46
"github.com/labstack/echo/v4"
57
"go.uber.org/zap"
68
"go.uber.org/zap/zapcore"
7-
"time"
89
)
910

1011
// ZapLogger is a middleware and zap to provide an "access log" like logging for each request.

logger_test.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
package main
1+
package echozap
22

33
import (
4+
"net/http"
5+
"net/http/httptest"
6+
"testing"
7+
48
"github.com/labstack/echo/v4"
59
"github.com/stretchr/testify/assert"
610
"go.uber.org/zap"
711
"go.uber.org/zap/zaptest/observer"
8-
"net/http"
9-
"net/http/httptest"
10-
"testing"
1112
)
1213

1314
func TestZapLogger(t *testing.T) {

0 commit comments

Comments
 (0)