From 16a90b04691b25aec47e0e8a5334ea686feca3a6 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 9 May 2024 10:15:14 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9E=20Token=20=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- condition_expr.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/condition_expr.go b/condition_expr.go index 23d8ab6..950b656 100644 --- a/condition_expr.go +++ b/condition_expr.go @@ -240,9 +240,10 @@ func Operator(v ConditionOperator) ExprOption { } } -func TokenType(v ConditionTokenType) ExprOption { +func Token(token string, tType ConditionTokenType) ExprOption { return func(option *ConditionExpr) { - option.tokenType = v + option.token = token + option.tokenType = tType } }