From e6c97685e7eb3c86ca898ae613f3483efbf4e5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 1 Sep 2023 17:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B0=83=E8=AF=95=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/gabs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool/gabs.go b/tool/gabs.go index b70b261..356ec8d 100644 --- a/tool/gabs.go +++ b/tool/gabs.go @@ -35,11 +35,12 @@ type FilterDataRule struct { // Author : go_developer@163.com<白茶清欢> // // Date : 2022/1/22 9:50 PM -func NewDataFilter(source string, filterRule []*FilterDataRule) *DataFilter { +func NewDataFilter(source string, filterRule []*FilterDataRule, debugMode bool) *DataFilter { return &DataFilter{ source: source, filterRule: filterRule, rewriteResult: "{}", + debugMode: debugMode, } } @@ -52,6 +53,7 @@ type DataFilter struct { source string filterRule []*FilterDataRule rewriteResult string // json数据重写结果 + debugMode bool // 调试模式 } // Filter 数据过滤