Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasContext ¶
AliasContext objects are passed into an alias's value template when the alias is executed
type Candidates ¶
type Candidates []Candidate
The Candidates object is used to manage Candidate instances in a db.Store by using the Candidates' names as keys
func (Candidates) Get ¶
func (c Candidates) Get(name string) (Candidate, bool)
Get will return the candidate with the matching name. The name is not case sensitive. A bool is also returned denoting if the candidate exists or not.
func (Candidates) Less ¶
func (c Candidates) Less(i, j int) bool
Less is a method to satisfy sort.Interface
func (Candidates) Sort ¶
func (c Candidates) Sort(ascending bool)
Sort will sort the candidates by their name. If ascending is true, names are sorted by alphabetical order. If ascending is false, names are sorted by reverse alphabetical order.
func (Candidates) Swap ¶
func (c Candidates) Swap(i, j int)
Swap is a method to satisfy sort.Interface
type Interviews ¶
type Interviews []Interview
The Interviews object is used to manage Interview instances in a db.Store
func (Interviews) Less ¶
func (n Interviews) Less(i, j int) bool
Less is a method to satisfy sort.Interface
func (Interviews) Sort ¶
func (n Interviews) Sort(ascending bool)
Sort will sort the interviews by their time. If ascending is true, names are sorted in chronological order. If ascending is false, names are sorted by reverse chronological order.
func (Interviews) Swap ¶
func (n Interviews) Swap(i, j int)
Swap is a method to satisfy sort.Interface
type TriviaQuestion ¶
Trivia models hold information about a specific trivia question
func (TriviaQuestion) String ¶
func (t TriviaQuestion) String() string
String will return a string representation of the question and all possible answers