From debde8a66a7bed22a8d25950952447493e9435fa Mon Sep 17 00:00:00 2001 From: Sodesnei <1452401269@qq.com> Date: Sun, 10 Oct 2021 14:10:21 +0800 Subject: [PATCH] feat(middle): update middle define var --- pkg/middle/define.go | 2 +- plugins/log-middle/middleware.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/middle/define.go b/pkg/middle/define.go index 2cb946a..72caaa6 100644 --- a/pkg/middle/define.go +++ b/pkg/middle/define.go @@ -6,7 +6,7 @@ import ( var ( oneMiddle sync.Once - MiddleWareDriver *MiddleWare + middleWareDriver *MiddleWare ) const ( diff --git a/plugins/log-middle/middleware.go b/plugins/log-middle/middleware.go index ae7c0bb..dbdb6fe 100644 --- a/plugins/log-middle/middleware.go +++ b/plugins/log-middle/middleware.go @@ -1,6 +1,8 @@ package log_middle import ( + "fmt" + "gitee.com/timedb/wheatCache/plugins" ) @@ -11,7 +13,7 @@ func (i *logMiddle) Init() { } func (i *logMiddle) Exec(interface{}) (interface{}, error) { - + fmt.Println("logMiddle") return "", nil }