questions

package
v0.0.0-...-d4bcb5e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuestionInterface

type QuestionInterface interface {
	Questions() []models.Question
	LoadQuestions() ([]models.Question, error)
	GetNext(answers []models.Question) (nextQuestions []models.Question, err error)
}
var QuestionService QuestionInterface

type QuestionServiceStruct

type QuestionServiceStruct struct {
	Filename string
}

func (*QuestionServiceStruct) GetNext

func (q *QuestionServiceStruct) GetNext(answers []models.Question) (nextQuestions []models.Question, err error)

This function returns the list of questions

func (*QuestionServiceStruct) LoadQuestions

func (q *QuestionServiceStruct) LoadQuestions() (questions []models.Question, err error)

Loads questions from an external source Returns a list of questions

func (*QuestionServiceStruct) Questions

func (q *QuestionServiceStruct) Questions() []models.Question

The getter for questions. If questions

Jump to

Keyboard shortcuts

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