go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.07k stars 1.29k forks source link

URN (RFC 8141) validator #1223

Open leodido opened 4 months ago

leodido commented 4 months ago

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

Enable validation of a string value as a URN according to RFC 8141 spec (2017).

Code sample, to showcase or reproduce:

type Config struct {
    path string `validate:"urn"`
}