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 https://pkg.go.dev/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 https://pkg.go.dev/github.com/oapi-codegen/runtime/types#ErrValidationEmail
Functions ¶
This section is empty.
Types ¶
type Date
deprecated
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#Date
func (Date) MarshalJSON
deprecated
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#MarshalJSON
func (Date) String
deprecated
added in
v1.8.3
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#String
func (*Date) UnmarshalJSON
deprecated
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#UnmarshalJSON
func (*Date) UnmarshalText
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#UnmarshalText
type Email
deprecated
added in
v1.3.9
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 https://pkg.go.dev/github.com/oapi-codegen/runtime/types#Email
func (Email) MarshalJSON
deprecated
added in
v1.3.9
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#MarshalJSON
func (*Email) UnmarshalJSON
deprecated
added in
v1.3.9
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#UnmarshalJSON
type File
deprecated
added in
v1.12.0
type File struct {
// contains filtered or unexported fields
}
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#File
func (File) Bytes
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#Bytes
func (File) FileSize
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#FileSize
func (File) Filename
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#Filename
func (*File) InitFromBytes
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#InitFromBytes
func (*File) InitFromMultipart
deprecated
added in
v1.12.0
func (file *File) InitFromMultipart(header *multipart.FileHeader)
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#InitFromMultipart
func (File) MarshalJSON
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#MarshalJSON
func (File) Reader
deprecated
added in
v1.12.0
func (file File) Reader() (io.ReadCloser, error)
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#Reader
func (*File) UnmarshalJSON
deprecated
added in
v1.12.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#UnmarshalJSON
type UUID
deprecated
added in
v1.10.0
Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#UUID