Update module github.com/gookit/validate to v1.6.0 #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/github.com-gookit-validate-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v1.5.7→v1.6.0Release Notes
gookit/validate (github.com/gookit/validate)
v1.6.0Compare Source
Internal performance refactor. No public API changes — drop-in upgrade.
Performance
checks) in a concurrency-safe type cache; access struct fields via
FieldByIndexinstead ofFieldByName.ptr-to-struct / slice-of-struct / map-of-struct) and clone it per
validation, skipping the per-instance tag walk and rule parsing. Dynamic
types keep the original per-value path.
Translator; resolve with a custom→builtin fallback.required*,*Field, file checks)lazily on first use instead of eagerly per instance.
Measured (Go 1.25, count=6): static struct validation ~-78% time / -74%
allocations (10403→2295 ns/op, 132→34 allocs/op); map validation -65% /
-42%; slice-of-struct -37% / -20%. Behavior is byte-identical, guarded by a
rule-collection golden test.
Fixes
mutually-recursive struct types.
Val/Var: concurrent calls shared one validationinstance and raced on its error/validator maps; each call now uses a
pooled instance.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
ℹ️ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):Details:
github.com/gookit/goutilv0.7.4->v0.7.6