Documentation ¶
Index ¶
- Variables
- type Answer
- type AnswerGps
- type Answers
- type GlobalTplVars
- type LineEventExport
- type Location
- type LocationPrice
- type LocationThai
- type Question
- type Questions
- func (qs *Questions) Add(id, question string, weight int, channel string) error
- func (qs *Questions) At(index int) (q *Question, err error)
- func (qs *Questions) Last() (q *Question, err error)
- func (qs *Questions) Len() int
- func (qs *Questions) MarshalJSON() ([]byte, error)
- func (qs *Questions) Next(qid string) (q *Question, err error)
- type UserProfile
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 LineEventExport ¶ added in v0.0.20
LineEventExport: used for CSV events download
type LocationPrice ¶ added in v0.0.11
type LocationThai ¶ added in v0.0.11
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 ¶
Click to show internal directories.
Click to hide internal directories.