Documentation ¶
Overview ¶
Package award defines a MOTH award, and provides tools to use them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List []T
List is a collection of award events.
type T ¶
type T struct { // Unix epoch time of this event When int64 TeamID string Category string Points int }
T represents a single award event.
func (T) Equal ¶
Equal returns true if two award events represent the same award. Timestamps are ignored in this comparison!
func (T) MarshalJSON ¶
MarshalJSON returns the award event, encoded as a list.
func (T) UnmarshalJSON ¶
UnmarshalJSON decodes the JSON string b.
Click to show internal directories.
Click to hide internal directories.