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 }