oas

package
v0.11.15 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const OASRFC3339Millis = "2006-01-02T15:04:05.000Z07:00"

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time struct {
	time.Time
	// contains filtered or unexported fields
}

func FromTime

func FromTime(value time.Time) Time

func FromTimePtr added in v0.10.18

func FromTimePtr(value *time.Time) *Time

func Now

func Now() Time

func (*Time) Bind added in v0.10.33

func (t *Time) Bind(src string) error

Bind implements github.com/oapi-codegen/runtime.Binder, to prevent it from being treated as a legacy oapi-codgen Date object and being parsed as just the date.

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalText added in v0.10.35

func (t Time) MarshalText() ([]byte, error)

Jump to

Keyboard shortcuts

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