Versions in this module Expand all Collapse all v0 v0.4.0 Mar 28, 2018 Changes in this version + type ContestDescription struct + Key string + Name string + type ContestList struct + Closed []ContestDescription + Open []ContestDescription type Match + Num int v0.2.0 Mar 11, 2018 Changes in this version type Roster + ActiveRound int + CurrentVotes int + Name string v0.1.0 Mar 7, 2018 Changes in this version + type Contender int + const A + const B + const NONE + type Match struct + Contenders [2]string + Score [2]int + Winner Contender + func NewMatch(contenderA string, contenderB string) *Match + func (m *Match) WinA() + func (m *Match) WinB() + type Roster struct + Rounds []*Round + UUID []byte + func CreateRoster(participants []string) (*Roster, error) + func CreateRosterRaw(participants []byte) (*Roster, error) + func ParseRoster(r io.ReadCloser) (*Roster, error) + func (r *Roster) AddVotes(vote *Roster) + func (r *Roster) AdvanceRound() + func (r *Roster) DeepCopy() *Roster + type Round struct + Matches []*Match + type TemplateSet struct + Templates map[string]string + func LoadTemplatesFromDisk() (*TemplateSet, error) + func LoadTemplatesFromGob(b []byte) (*TemplateSet, error) + func (ts *TemplateSet) EncodeGob() ([]byte, error)