[feat] 新增 Token 选项

This commit is contained in:
what 2024-05-09 10:15:14 +08:00
parent 8270326a7b
commit 16a90b0469

View File

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