Documentation ¶
Index ¶
- Constants
- Variables
- type Datedeprecated
- func (d Date) MarshalJSON() ([]byte, error)deprecated
- func (d Date) String() stringdeprecated
- func (d *Date) UnmarshalJSON(data []byte) errordeprecated
- func (d *Date) UnmarshalText(data []byte) errordeprecated
- type Emaildeprecated
- type Filedeprecated
- func (file File) Bytes() ([]byte, error)deprecated
- func (file File) FileSize() int64deprecated
- func (file File) Filename() stringdeprecated
- func (file *File) InitFromBytes(data []byte, filename string)deprecated
- func (file *File) InitFromMultipart(header *multipart.FileHeader)deprecated
- func (file File) MarshalJSON() ([]byte, error)deprecated
- func (file File) Reader() (io.ReadCloser, error)deprecated
- func (file *File) UnmarshalJSON(data []byte) errordeprecated
- type UUIDdeprecated
Constants ¶
const DateFormat = "2006-01-02"
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#DateFormat
Variables ¶
var ErrValidationEmail = errors.New("email: failed to pass regex validation")
ErrValidationEmail is the sentinel error returned when an email fails validation
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#ErrValidationEmail
Functions ¶
This section is empty.
Types ¶
type Date
deprecated
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Date
func (Date) MarshalJSON
deprecated
func (*Date) UnmarshalJSON
deprecated
func (*Date) UnmarshalText
deprecated
type Email
deprecated
type Email string
Email represents an email address. It is a string type that must pass regex validation before being marshalled to JSON or unmarshalled from JSON.
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Email
func (Email) MarshalJSON
deprecated
func (*Email) UnmarshalJSON
deprecated
type File
deprecated
type File struct {
// contains filtered or unexported fields
}
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#File
func (*File) InitFromBytes
deprecated
func (*File) InitFromMultipart
deprecated
func (file *File) InitFromMultipart(header *multipart.FileHeader)
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#InitFromMultipart
func (File) MarshalJSON
deprecated
func (File) Reader
deprecated
func (file File) Reader() (io.ReadCloser, error)
Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Reader