Documentation ¶
Index ¶
- Constants
- type Date
- type DateTimeUTC
- func (dt DateTimeUTC) GormDBDataType(db *gorm.DB, _ *schema.Field) string
- func (dt DateTimeUTC) GormDataType() string
- func (dt DateTimeUTC) MarshalJSON() ([]byte, error)
- func (dt DateTimeUTC) MarshalText() ([]byte, error)
- func (dt *DateTimeUTC) Scan(value interface{}) (err error)
- func (dt *DateTimeUTC) UnmarshalJSON(data []byte) error
- func (dt *DateTimeUTC) UnmarshalText(data []byte) error
- func (dt DateTimeUTC) Value() (driver.Value, error)
Constants ¶
const RFC3339UTC = "2006-01-02T15:04:05Z"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
func (Date) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. The time is a quoted string in RFC 3339 format, with sub-second precision added if present.
func (Date) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface. The time is formatted in RFC 3339 format, with sub-second precision added if present.
func (*Date) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in RFC 3339 format.
func (*Date) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in RFC 3339 format.
type DateTimeUTC ¶
func (DateTimeUTC) GormDBDataType ¶
func (DateTimeUTC) GormDataType ¶
func (dt DateTimeUTC) GormDataType() string
GormDataType gorm common data type
func (DateTimeUTC) MarshalJSON ¶
func (dt DateTimeUTC) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. The time is a quoted string in RFC 3339 format, with sub-second precision added if present.
func (DateTimeUTC) MarshalText ¶
func (dt DateTimeUTC) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface. The time is formatted in RFC 3339 format, with sub-second precision added if present.
func (*DateTimeUTC) Scan ¶
func (dt *DateTimeUTC) Scan(value interface{}) (err error)
func (*DateTimeUTC) UnmarshalJSON ¶
func (dt *DateTimeUTC) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in RFC 3339 format.
func (*DateTimeUTC) UnmarshalText ¶
func (dt *DateTimeUTC) UnmarshalText(data []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in RFC 3339 format.