Releases: bytedance/go-tagexpr
Releases · bytedance/go-tagexpr
v1.2.4
The field selector in the expression supports relative path instead of absolute path
v1.2.3
chore: Check interface fields when TagExpr.Range
fix: Don't panic when vm.Run method accepts nil parameter
chore: Use runtime type ID, support struct type, and improve performance by 25%
v1.2.2
Operator or Operand |
Explain |
\\' |
Escape ' delims in string |
\" |
Escape " delims in string |
v1.2.1
Operator !
suitable for ()
, bool
, string
, float64
, nil
and $
v1.2.0
feat: Add RegFunc, support registers function expression, allows to force registration
feat: Function support "!" symbol
feat: Add helper method: vm.MustWarmUp and vm.MustRun
chore: Remove len(), keep len($)
feat(validator): Add RegValidateFunc registers validate function expression
feat(validator): Add email function expression
feat(validator): Add phone function expression
v1.1.5
- feat: support expression '-$' and '+$'
- feat: support "$['A']" and "$[0]" to select struct sub-field
- fix: fix the vaule getter of unsupport type
v1.1.4
chore(expr selector): single model selector remove '@' suffix
style(error): error message: 'Invalid parameter' -> 'invalid parameter'
v1.1.3
feat: Support get any struct filed value
chore: Improve stability
v1.1.1
feat: support nil value
chore: update validator