types

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDateNotJSONString = errors.New("cannot parse non-string value as a date")
View Source
var ErrTimeNotJSONString = errors.New("cannot parse non-string value as a time")

Functions

This section is empty.

Types

type SerializableDate

type SerializableDate struct {
	time.Time
}

func (SerializableDate) MarshalJSON

func (date SerializableDate) MarshalJSON() ([]byte, error)

func (*SerializableDate) UnmarshalJSON

func (date *SerializableDate) UnmarshalJSON(data []byte) error

type SerializableTime

type SerializableTime struct {
	time.Time
}

func (SerializableTime) MarshalJSON

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

func (*SerializableTime) UnmarshalJSON

func (t *SerializableTime) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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