Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInteger = errors.New("value is not an integer")
Functions ¶
This section is empty.
Types ¶
type Microseconds ¶ added in v0.8.4
func (*Microseconds) Get ¶ added in v0.8.4
func (s *Microseconds) Get() time.Duration
func (Microseconds) MarshalJSON ¶ added in v0.8.4
func (s Microseconds) MarshalJSON() ([]byte, error)
func (*Microseconds) Scan ¶ added in v0.8.4
func (s *Microseconds) Scan(src interface{}) error
func (*Microseconds) UnmarshalJSON ¶ added in v0.8.4
func (s *Microseconds) UnmarshalJSON(data []byte) error
type Milliseconds ¶ added in v0.8.4
func MS ¶ added in v0.8.4
func MS(dur time.Duration) Milliseconds
func MSInt ¶ added in v0.8.4
func MSInt(dur int64) Milliseconds
func (*Milliseconds) Get ¶ added in v0.8.4
func (s *Milliseconds) Get() time.Duration
func (Milliseconds) MarshalJSON ¶ added in v0.8.4
func (s Milliseconds) MarshalJSON() ([]byte, error)
func (*Milliseconds) Scan ¶ added in v0.8.4
func (s *Milliseconds) Scan(src interface{}) error
func (*Milliseconds) UnmarshalJSON ¶ added in v0.8.4
func (s *Milliseconds) UnmarshalJSON(data []byte) error
type Nanoseconds ¶ added in v0.8.4
func (*Nanoseconds) Get ¶ added in v0.8.4
func (s *Nanoseconds) Get() time.Duration
func (Nanoseconds) MarshalJSON ¶ added in v0.8.4
func (s Nanoseconds) MarshalJSON() ([]byte, error)
func (*Nanoseconds) Scan ¶ added in v0.8.4
func (s *Nanoseconds) Scan(src interface{}) error
func (*Nanoseconds) UnmarshalJSON ¶ added in v0.8.4
func (s *Nanoseconds) UnmarshalJSON(data []byte) error
type Seconds ¶ added in v0.8.4
func (Seconds) MarshalJSON ¶ added in v0.8.4
func (*Seconds) UnmarshalJSON ¶ added in v0.8.4
type UnixMicro ¶ added in v0.2.0
func UMicroInto ¶ added in v0.2.0
func UnixMicroNow ¶ added in v0.2.0
func UnixMicroNow() UnixMicro
func (UnixMicro) MarshalJSON ¶ added in v0.2.0
func (*UnixMicro) UnmarshalJSON ¶ added in v0.2.0
type UnixMicroString ¶ added in v0.2.0
func (UnixMicroString) MarshalJSON ¶ added in v0.2.0
func (um UnixMicroString) MarshalJSON() ([]byte, error)
func (*UnixMicroString) UnmarshalJSON ¶ added in v0.2.0
func (um *UnixMicroString) UnmarshalJSON(data []byte) error
type UnixMilli ¶
func UnixMilliNow ¶
func UnixMilliNow() UnixMilli
func (UnixMilli) MarshalJSON ¶
func (*UnixMilli) UnmarshalJSON ¶
type UnixMilliString ¶ added in v0.2.0
func (UnixMilliString) MarshalJSON ¶ added in v0.2.0
func (um UnixMilliString) MarshalJSON() ([]byte, error)
func (*UnixMilliString) UnmarshalJSON ¶ added in v0.2.0
func (um *UnixMilliString) UnmarshalJSON(data []byte) error
type UnixNano ¶ added in v0.2.0
func UnixNanoNow ¶ added in v0.2.0
func UnixNanoNow() UnixNano
func (UnixNano) MarshalJSON ¶ added in v0.2.0
func (*UnixNano) UnmarshalJSON ¶ added in v0.2.0
type UnixNanoString ¶ added in v0.2.0
func (UnixNanoString) MarshalJSON ¶ added in v0.2.0
func (um UnixNanoString) MarshalJSON() ([]byte, error)
func (*UnixNanoString) UnmarshalJSON ¶ added in v0.2.0
func (um *UnixNanoString) UnmarshalJSON(data []byte) error
type UnixString ¶ added in v0.2.0
func (UnixString) MarshalJSON ¶ added in v0.2.0
func (u UnixString) MarshalJSON() ([]byte, error)
func (*UnixString) UnmarshalJSON ¶ added in v0.2.0
func (u *UnixString) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.