types

package
v1.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 211 modules, 228 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DateFormat = "2006-01-02"

Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#DateFormat

Variables

View Source
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

type Date struct {
	time.Time
}

Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#Date

func (Date) MarshalJSON deprecated

func (d Date) MarshalJSON() ([]byte, error)

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

func (d Date) String() string

Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#String

func (*Date) UnmarshalJSON deprecated

func (d *Date) UnmarshalJSON(data []byte) error

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

func (d *Date) UnmarshalText(data []byte) error

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

func (e Email) MarshalJSON() ([]byte, error)

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

func (e *Email) UnmarshalJSON(data []byte) error

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

func (file File) Bytes() ([]byte, error)

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

func (file File) FileSize() int64

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

func (file File) Filename() string

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

func (file *File) InitFromBytes(data []byte, filename string)

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

func (file File) MarshalJSON() ([]byte, error)

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

func (file *File) UnmarshalJSON(data []byte) error

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

type UUID = uuid.UUID

Deprecated: This has been replaced by https://pkg.go.dev/github.com/oapi-codegen/runtime/types#UUID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL