tally

package
v0.0.0-...-d92090f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShortTally

type ShortTally struct {
	Candidate string   `json:"candidate"`
	Votes     []string `json:"votes"`
}

func Short

func Short(verbose []*TallyItem) []*ShortTally

type TallyItem

type TallyItem struct {
	Candidate player.Player   `json:"candidate"`
	Votes     []player.Player `json:"votes"`
}

func Item

func Item(c player.Player, v []player.Player) *TallyItem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL