Documentation ¶
Overview ¶
Copyright (c) 2023
@author 贺鹏Kavin 微信公众号:技术岁月 https://github.com/skyhackvip/risk_engine
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) 2023 ¶
@author 贺鹏Kavin 微信公众号:技术岁月 https://github.com/skyhackvip/risk_engine
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) 2023 ¶
@author 贺鹏Kavin 微信公众号:技术岁月 https://github.com/skyhackvip/risk_engine
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Index ¶
- func AInB(a []interface{}, b []interface{}) bool
- func Compare(operator string, left interface{}, right interface{}) (bool, error)
- func Evaluate(exprStr string, params map[string]interface{}) (bool, error)
- func EvaluateBoolExpr(expr string, variables map[string]bool) (bool, error)
- func InArray(arr []interface{}, val interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateBoolExpr ¶
evaluate 计算逻辑表达式的值
Types ¶
This section is empty.