invopop / validation

An idiomatic Go validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
81 stars 5 forks source link

Refactor to use time.DateOnly; enable usestdlibvars #10

Open alexandear opened 1 month ago

alexandear commented 1 month ago

The PR replaces usages of "2006-01-02" with time.DateOnly. The constant time.DateOnly is available in Go 1.20.

This has been found with the help of usestdlibvars linter.