Open chenchu2014 opened 3 years ago
which func?
github.com/bytedance/go-tagexpr@v2.7.2+incompatible/validator/default.go:16
But I can't reproduce it
type (
Issue23A struct {
b *Issue23B
v int64 `vd:"$==0"`
}
Issue23B struct {
a *Issue23A
v int64 `vd:"$==0"`
}
)
func TestIssue23(t *testing.T) {
var data = &Issue23B{a: &Issue23A{b: new(Issue23B)}}
err := vd.Validate(data)
assert.NoError(t, err)
}
=== RUN TestIssue23
--- PASS: TestIssue23 (0.00s)
PASS
type struct A {b B} type struct B {a A}
will cause stack over flow, think of cycle cite check?