Versions in this module Expand all Collapse all v1 v1.0.0 Apr 22, 2026 Changes in this version + const Pattern + type NssElementValidator func(nss []string) (nssRemainder []string, next *NssSchema, err error) + func ComplexOrNssElementValidatorFunc(alternatives []*NssSchema) NssElementValidator + func EqualsNssElementValidatorFunc(nssEquals string, next *NssSchema) NssElementValidator + func GlobNssElementValidatorFunc(glob glob.Glob) NssElementValidator + func RegexNssElementValidatorFunc(pattern *regexp.Regexp, next *NssSchema) NssElementValidator + func SimpleOrNssElementValidatorFunc(alternatives map[string]*NssSchema) NssElementValidator + type NssSchema struct + Description string + ElementValidator NssElementValidator + type Schema struct + Description string + Nid string + NssSchema *NssSchema + func (s *Schema) Validate(urn string) error + func (s *Schema) ValidateUrn(u Urn) error + type Urn struct + Fragment string + Nid string + Nss []string + NssSlashDelimiter bool + Query map[string][]string + Resolvers map[string][]string + func Parse(urn string) (Urn, error) + func (u *Urn) IsWellFormed() error + func (u Urn) Format() (string, error) + func (u Urn) ToString() (string, error) Other modules containing this package github.com/cperfect/urnfield/v2