Documentation
¶
Index ¶
- Constants
- type DateTime
- type Duration
- func (Duration) GormDataType() string
- func (d Duration) MarshalGQL(w io.Writer)
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d *Duration) Scan(value any) error
- func (d *Duration) UnmarshalGQL(v any) error
- func (d *Duration) UnmarshalJSON(data []byte) error
- func (d Duration) Value() (driver.Value, error)
- type LatLng
- type Point
- type TimeOfDay
- func (TimeOfDay) GormDataType() string
- func (t TimeOfDay) MarshalGQL(w io.Writer)
- func (t TimeOfDay) MarshalJSON() ([]byte, error)
- func (t *TimeOfDay) Scan(value any) error
- func (t *TimeOfDay) UnmarshalGQL(v interface{}) error
- func (t *TimeOfDay) UnmarshalJSON(data []byte) error
- func (t TimeOfDay) Value() (driver.Value, error)
Constants ¶
const DateTimeFormat = "2006-01-02T15:04"
const TimeOfDayFormat = "15:04"
const TimeOfDayFormatExtended = "15:04:05"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateTime ¶
func (DateTime) GormDataType ¶
func (DateTime) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (DateTime) MarshalJSON ¶
func (*DateTime) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
func (*DateTime) UnmarshalJSON ¶
type Duration ¶
func (Duration) GormDataType ¶
func (Duration) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
func (*Duration) UnmarshalJSON ¶
type Point ¶
func (Point) GormDataType ¶
func (*Point) SetCoordinates ¶
Set point as Latitude and Longitude coordinates.
type TimeOfDay ¶
func (TimeOfDay) GormDataType ¶
func (TimeOfDay) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (TimeOfDay) MarshalJSON ¶
func (*TimeOfDay) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface