Documentation
¶
Index ¶
- type Duration
- func (d Duration) Duration() time.Duration
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d *Duration) PGInterval() pgtype.Interval
- func (d Duration) String() string
- func (d *Duration) UnmarshalJSON(b []byte) error
- func (d *Duration) UnmarshalText(text []byte) error
- func (d *Duration) UnmarshalYAML(n *yaml.Node) error
- type Location
- type Metadata
- type String
- type Time
- type URL
- type UUID
- type UUIDs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
func ParseDuration ¶
func (Duration) MarshalJSON ¶
func (*Duration) PGInterval ¶
func (*Duration) UnmarshalJSON ¶
func (*Duration) UnmarshalText ¶
func (*Duration) UnmarshalYAML ¶
type Location ¶
type Location struct {
json.RawMessage
}
type String ¶
type String string
This type is used when we should unmarshal even values that are valid as another type into a string.
func (*String) UnmarshalJSON ¶
type Time ¶
func ParseLocal ¶
func ParseLocal(s string, opt ...dateparse.ParserOption) (Time, error)
func TimePtrFromTSTZ ¶
func TimePtrFromTSTZ(t pgtype.Timestamptz) *Time
func (Time) MarshalJSON ¶
func (*Time) PGTypeTSTZ ¶
func (t *Time) PGTypeTSTZ() pgtype.Timestamptz
func (*Time) UnmarshalJSON ¶
func (*Time) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.