Documentation ¶
Index ¶
- Constants
- type Duration
- func (d Duration) MarshalBinary() (data []byte, err error)
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d Duration) RedisArg() interface{}
- func (d *Duration) RedisScan(src interface{}) error
- func (d Duration) Round(m Duration) Duration
- func (d Duration) String() string
- func (d *Duration) UnmarshalBinary(data []byte) error
- func (d *Duration) UnmarshalJSON(data []byte) error
- func (d *Duration) UnmarshalParam(data string) error
- type Time
- func (t Time) MarshalBinary() (data []byte, err error)
- func (t Time) MarshalJSON() ([]byte, error)
- func (t Time) RedisArg() interface{}
- func (t *Time) RedisScan(src interface{}) error
- func (t *Time) Scan(src interface{}) error
- func (t Time) String() string
- func (t Time) Sub(u Time) Duration
- func (t *Time) UnmarshalBinary(data []byte) error
- func (t *Time) UnmarshalJSON(data []byte) error
- func (t *Time) UnmarshalParam(data string) error
- func (t Time) Value() (driver.Value, error)
Constants ¶
View Source
const ( Nanosecond = Duration(time.Nanosecond) Microsecond = Duration(time.Microsecond) Millisecond = Duration(time.Millisecond) Second = Duration(time.Second) Minute = Duration(time.Minute) Hour = Duration(time.Hour) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
func (Duration) MarshalBinary ¶
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalBinary ¶
func (*Duration) UnmarshalJSON ¶
func (*Duration) UnmarshalParam ¶
type Time ¶
func FromString ¶
func (Time) MarshalBinary ¶
func (Time) MarshalJSON ¶
func (*Time) UnmarshalBinary ¶
func (*Time) UnmarshalJSON ¶
func (*Time) UnmarshalParam ¶
Click to show internal directories.
Click to hide internal directories.