aneurinandClaude Sonnet 5 fb47461d5d add Required, Prefix, Suffix, Contains, Match validators
Broadens the built-in set with the string/presence checks that came up
most often when reaching for this package:

  - Required[T comparable]  non-zero value
  - Prefix / Suffix / Contains  strings.HasPrefix/HasSuffix/Contains
  - Match(*regexp.Regexp)  arbitrary pattern

All follow the existing shape: a constructor returning func(T) error, a
sentinel error matched with errors.Is, table-driven tests and an Example.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 13:21:56 +01:00
2024-07-19 14:11:34 +01:00
2024-07-19 14:11:53 +01:00
2024-07-19 14:11:53 +01:00
2023-11-19 20:42:48 +00:00
2026-07-05 23:38:45 +01:00
2024-07-19 14:11:53 +01:00
2024-07-19 14:11:53 +01:00
2024-07-11 17:33:18 +01:00
2024-07-19 14:11:53 +01:00
2024-07-19 14:29:46 +01:00
2024-07-19 14:11:53 +01:00
2024-07-19 14:11:53 +01:00
2024-07-19 14:11:53 +01:00

Go Validate

A suite of straightforward validation functions. You put something in, you get back nil or an error.

License

See LICENSE.md

S
Description
No description provided
Readme
95 KiB
Languages
Go 100%