An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
3.73k
stars
224
forks
source link
Add example of parameterization checks using closures #73
I recognize this is a relatively straight forward usage of closures, but I always find it useful to have examples. Theoretically this can close https://github.com/go-ozzo/ozzo-validation/issues/64 as it pulls out the discussion into documentation.
Coverage remained the same at 99.848% when pulling ad41b5ac1efd5fd6552bb387d565b192fd35f19c on LindseyB:patch-1 into 2882aa089b427b06d7930d82b8136e7281c0629b on go-ozzo:master.
I recognize this is a relatively straight forward usage of closures, but I always find it useful to have examples. Theoretically this can close https://github.com/go-ozzo/ozzo-validation/issues/64 as it pulls out the discussion into documentation.