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 } }