package
0.2.0
Repository: https://github.com/stoplightio/go-swagger.git
Documentation: pkg.go.dev

# Functions

DefaultNameNormalizer removes all dashes.
IsDate returns true when the string is a valid date.
IsDateTime returns true when the string is a valid date-time.
IsDuration returns true if the provided string is a valid duration.
IsHostname returns true when the string is a valid hostname.
IsStrictURI returns true when the string is an absolute URI.
NewDateTime is a representation of zero value for DateTime type.
NewFormats creates a new formats registry seeded with the values from the default.
NewSeededFormats creates a new formats registry.
ParseDateTime parses a string that represents an ISO8601 time or a unix epoch.
ParseDuration parses a duration from a string, compatible with scala duration syntax.

# Constants

DatePattern pattern to match for the date format from http://tools.ietf.org/html/rfc3339#section-5.6.
DateTimePattern pattern to match for the date-time format from http://tools.ietf.org/html/rfc3339#section-5.6.
HostnamePattern http://json-schema.org/latest/json-schema-validation.html#anchor114 A string instance is valid against this attribute if it is a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
RFC3339FullDate represents a full-date as specified by RFC3339 See: http://goo.gl/xXOvVd.
RFC3339Millis represents a ISO8601 format to millis instead of to nanos.

# Variables

Default is the default formats registry.

# Structs

Date represents a date from the API swagger:strfmt date.
DateTime is a time but it serializes to ISO8601 format with millis It knows how to read 3 different variations of a RFC3339 date time.

# Interfaces

Format represents a string format.
Registry is a registry of string formats.

# Type aliases

Base64 represents a base64 encoded string swagger:strfmt byte.
CreditCard represents a credit card string format swagger:strfmt creditcard.
Duration represents a duration swagger:strfmt duration.
Email represents the email string format as specified by the json schema spec swagger:strfmt email.
HexColor represents a hex color string format swagger:strfmt hexcolor.
Hostname represents the hostname string format as specified by the json schema spec swagger:strfmt hostname.
IPv4 represents an IP v4 address swagger:strfmt ipv4.
IPv6 represents an IP v6 address swagger:strfmt ipv6.
ISBN represents an isbn string format swagger:strfmt isbn.
ISBN10 represents an isbn 10 string format swagger:strfmt isbn10.
ISBN13 represents an isbn 13 string format swagger:strfmt isbn13.
NameNormalizer is a function that normalizes a format name.
Password represents a password.
RGBColor represents a RGB color string format swagger:strfmt rgbcolor.
SSN represents a social security string format swagger:strfmt ssn.
URI represents the uri string format as specified by the json schema spec swagger:strfmt uri.
UUID represents a uuid string format swagger:strfmt uuid.
UUID3 represents a uuid3 string format swagger:strfmt uuid3.
UUID4 represents a uuid4 string format swagger:strfmt uuid4.
UUID5 represents a uuid5 string format swagger:strfmt uuid5.
Validator represents a validator for a string format.