Versions in this module Expand all Collapse all v0 v0.2.0 Aug 20, 2026 Changes in this version + var DefaultURLSchemes = []string + type BodyLimitOption func(*bodyLimitConfig) + func WithMaxBodyErrorHandler(h http.Handler) BodyLimitOption + type ContentTypeOption func(*contentTypeConfig) + func WithContentTypeErrorHandler(h http.Handler) ContentTypeOption type Rule + func URL(schemes ...string) Rule v0.1.0 Aug 18, 2026 Changes in this version + func MaxBodyBytes(n int64) func(http.Handler) http.Handler + func RequireContentType(mediaTypes ...string) func(http.Handler) http.Handler + func Validate(field, value string, rules ...Rule) error + type Error struct + Field string + Message string + func (e *Error) Error() string + type Rule func(field, value string) error + func Email() Rule + func Matches(re *regexp.Regexp, message string) Rule + func MaxLen(n int) Rule + func MinLen(n int) Rule + func NoHTMLTags() Rule + func OneOf(allowed ...string) Rule + func Required() Rule