Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidEmail ¶
IsValidEmail checks if s is a valid email address.
func IsValidSPDXExpression ¶ added in v1.67.0
IsValidSPDXExpression reports whether s is a well-formed SPDX license expression: ids joined by the uppercase operators AND or OR, an id followed by WITH and an exception id, and parentheses for grouping. The ids are not checked against the SPDX license list.
func IsValidURL ¶ added in v1.67.0
IsValidURL reports whether s is a URI reference as RFC 3986 defines it, which is the format the OpenAPI Specification's schemas require of its URL fields. A relative reference such as "./terms.html" is valid, and so is any scheme. An http or https URL must also have a host, which RFC 9110 requires. The empty string is not accepted.
Types ¶
This section is empty.