oastypes

package
v0.13.46 Latest Latest
Warning

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

Go to latest
Published: Oct 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

func FromTimePtr(value *time.Time) *Time

func Now

func Now() Time

func (*Time) Bind

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

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

Jump to

Keyboard shortcuts

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