Documentation
¶
Index ¶
- func IsValidDate(date string) error
- func IsValidDateTime(dateTime string) error
- func IsValidEmail(email string) error
- func IsValidHostname(hostname string) error
- func IsValidIPv4(ipv4 string) error
- func IsValidIPv6(ipv6 string) error
- func IsValidIdnEmail(idnEmail string) error
- func IsValidIdnHostname(idnHostname string) error
- func IsValidIri(iri string) error
- func IsValidIriRef(iriRef string) error
- func IsValidJSONPointer(jsonPointer string) error
- func IsValidRegex(regex string) error
- func IsValidRelJSONPointer(relJSONPointer string) error
- func IsValidTime(time string) error
- func IsValidURI(uri string) error
- func IsValidURITemplate(uriTemplate string) error
- func IsValidUriRef(uriRef string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidDateTime ¶
from RFC 3339, section 5.6 [RFC3339] https://tools.ietf.org/html/rfc3339#section-5.6
func IsValidEmail ¶
RFC 5322, section 3.4.1 [RFC5322]. https://tools.ietf.org/html/rfc5322#section-3.4.1
func IsValidHostname ¶
RFC 1034, section 3.1 [RFC1034] https://tools.ietf.org/html/rfc1034#section-3.1
func IsValidIdnEmail ¶
RFC 6531 [RFC6531] https://tools.ietf.org/html/rfc6531
func IsValidIdnHostname ¶
RFC 1034 as for hostname, or an internationalized hostname as defined by RFC 5890, section 2.3.2.3 [RFC5890]. https://tools.ietf.org/html/rfc1034 https://tools.ietf.org/html/rfc5890#section-2.3.2.3
func IsValidIri ¶
A string instance is a valid against "iri" if it is a valid IRI, according to [RFC3987]. https://tools.ietf.org/html/rfc3987
func IsValidIriRef ¶
A string instance is a valid against "iri-reference" if it is a valid IRI Reference (either an IRI or a relative-reference), according to [RFC3987]. https://tools.ietf.org/html/rfc3987
func IsValidJSONPointer ¶
RFC 6901, section 5 [RFC6901]. https://tools.ietf.org/html/rfc6901#section-5
func IsValidRegex ¶
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf https://tools.ietf.org/html/rfc7159
func IsValidURITemplate ¶
A string instance is a valid against "uri-template" if it is a valid URI Template (of any level), according to [RFC6570]. Note that URI Templates may be used for IRIs; there is no separate IRI Template specification. https://tools.ietf.org/html/rfc6570
func IsValidUriRef ¶
Types ¶
This section is empty.