Documentation ¶
Index ¶
- func ToVarint(dst by, t *T) by
- type T
- func (t *T) Bytes() (b by)
- func (t *T) FromInt(i no)
- func (t *T) FromVarint(dst by) (b by)
- func (t *T) I64() int64
- func (t *T) Int() no
- func (t *T) MarshalJSON(dst by) (b by, err er)
- func (t *T) String() (s st)
- func (t *T) Time() time.Time
- func (t *T) U64() uint64
- func (t *T) UnmarshalJSON(b by) (r by, err er)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T int64
T is a convenience type for UNIX 64 bit timestamps of 1 second precision.
func FromVarint ¶
func FromVarint(b by) (t *T, rem by, err er)
func (*T) FromVarint ¶
func (t *T) FromVarint(dst by) (b by)
func (*T) MarshalJSON ¶
func (t *T) MarshalJSON(dst by) (b by, err er)
func (*T) Time ¶
Time converts a timestamp.Time value into a canonical UNIX 64 bit 1 second precision timestamp.
func (*T) UnmarshalJSON ¶
func (t *T) UnmarshalJSON(b by) (r by, err er)
Click to show internal directories.
Click to hide internal directories.