Documentation
¶
Index ¶
Constants ¶
View Source
const DateFormat = "2006-01-02"
DateFormat represents a Go time format that matches the OpenAPI date.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
Date represents a time that must conform DateFormat.
Date implements the JSON.Marshaler and JSON.Unmarshaler interfaces, and validates that date matches DateFormat.
func (Date) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Date) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Email ¶
type Email string
Email represents a string that must conform to an email format.
Email implements the JSON.Marshaler and JSON.Unmarshaler interfaces, and validates that the email matches the email format.
func (Email) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Email) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.