go-ozzo / ozzo-validation

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

Check for MIME Types #169

Open acabarbaye opened 2 years ago

acabarbaye commented 2 years ago

Is it possible to add simple checks for Content-Type/MIME type? https://en.wikipedia.org/wiki/Media_type

type "/" [tree "."] subtype ["+" suffix]* [";" parameter]