Documentation ¶
Overview ¶
Package types implements custom datatypes returned by Riot APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Milliseconds ¶
type Milliseconds int64
Milliseconds represents a time or duration in milliseconds.
func (Milliseconds) Duration ¶
func (m Milliseconds) Duration() time.Duration
Duration returns the duration with the given number of milliseconds.
func (Milliseconds) Time ¶
func (m Milliseconds) Time() time.Time
Time returns the time associated with the Unix milliseconds.
type StringInt64 ¶
type StringInt64 int64
StringInt64 is a JSON string that represents an int64 value.
func (StringInt64) Int64 ¶
func (s StringInt64) Int64() int64
func (*StringInt64) UnmarshalJSON ¶
func (s *StringInt64) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.