bytedance / go-tagexpr

An interesting go struct tag expression syntax for field validation, etc.
Apache License 2.0
1.66k stars 142 forks source link

it might reduce code readability when tag is so long #10

Closed tylitianrui closed 4 years ago

tylitianrui commented 5 years ago

it is so powerful.👍 it might reduce code readability when tag is so long. how to express switch - case case

andeya commented 4 years ago

Too long code, including switch, can be solved with registered functions: https://github.com/bytedance/go-tagexpr/blob/master/spec_func.go#L36

tylitianrui commented 4 years ago

thx