Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAnswersEmpty = errors.New("Cannot do this operation on an empty Answers struct")
View Source
var ErrAnswersIdExists = errors.New("Duplicate question id")
View Source
var ErrAnswersIndexOutOfRange = errors.New("Index out of range")
View Source
var ErrAnswersNoNext = errors.New("No next question")
View Source
var ErrQuestionsEmpty = errors.New("Cannot do this operation on an empty Questions struct")
View Source
var ErrQuestionsIdExists = errors.New("Duplicate question id")
View Source
var ErrQuestionsIndexOutOfRange = errors.New("Index out of range")
View Source
var ErrQuestionsNoNext = errors.New("No next question")
Functions ¶
This section is empty.
Types ¶
type Answers ¶
type Answers struct {
// contains filtered or unexported fields
}
stores a list of Question objects not a map because we need to keep the order of the Answers maps in Go do not keep order
func NewAnswers ¶
func NewAnswers() *Answers
func (*Answers) MarshalJSON ¶
type GlobalTplVars ¶
type GlobalTplVars struct {
Hostname string
}
type Questions ¶
type Questions struct {
// contains filtered or unexported fields
}
stores a list of Question objects not a map because we need to keep the order of the questions maps in Go do not keep order
func NewQuestions ¶
func NewQuestions() *Questions
func (*Questions) MarshalJSON ¶
type UserProfile ¶
Click to show internal directories.
Click to hide internal directories.