Documentation ¶
Index ¶
- func AssessmentBreadcrumb(e edulab.Experiment, a edulab.Assessment, printer *message.Printer) template.HTML
- func AssessmentType(printer *message.Printer, t edulab.AssessmentType) string
- func AssessmentTypes(printer *message.Printer) [][]string
- func AssessmentsBreadcrumb(e edulab.Experiment, printer *message.Printer) template.HTML
- func CohortBreadcrumb(e edulab.Experiment, printer *message.Printer) template.HTML
- func ExperimentBreadcrumb(e edulab.Experiment, printer *message.Printer) template.HTML
- func HomeBreadcrumbs(printer *message.Printer) template.HTML
- type Assessment
- type Breadcrumb
- type Demographic
- type DemographicsResult
- type Experiment
- type Question
- type QuestionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssessmentBreadcrumb ¶
func AssessmentBreadcrumb(e edulab.Experiment, a edulab.Assessment, printer *message.Printer) template.HTML
func AssessmentType ¶
func AssessmentType(printer *message.Printer, t edulab.AssessmentType) string
func AssessmentTypes ¶
func AssessmentsBreadcrumb ¶
func CohortBreadcrumb ¶
func ExperimentBreadcrumb ¶
Types ¶
type Assessment ¶
type Assessment struct { edulab.Assessment Type string `json:"type"` Questions []Question `json:"questions"` }
func NewAssessment ¶
func NewAssessment(a edulab.Assessment, printer *message.Printer) Assessment
func NewAssessments ¶
func NewAssessments(as []edulab.Assessment, printer *message.Printer) []Assessment
type Breadcrumb ¶
type Demographic ¶
type Demographic struct { edulab.Demographic Options []edulab.DemographicOption }
func NewDemographics ¶
func NewDemographics(ds []edulab.Demographic, dos []edulab.DemographicOption) []Demographic
func SortDemographics ¶
func SortDemographics(ds []edulab.Demographic, do map[string]Demographic) []Demographic
type DemographicsResult ¶
type DemographicsResult struct { Demographics []Demographic Categories [][]string Cohorts []string Data [][][]int // [category][cohort][count] // contains filtered or unexported fields }
func NewDemographicsResult ¶
func NewDemographicsResult(ds []edulab.Demographic, dos []edulab.DemographicOption, cohorts []edulab.Cohort, participants []edulab.Participant, participations []edulab.Participation) (DemographicsResult, error)
type Experiment ¶
type Experiment struct { edulab.Experiment ElapsedTime string }
func ExperimentsList ¶
func ExperimentsList(experiments []edulab.Experiment, printer *message.Printer) []Experiment
type Question ¶
type Question struct { edulab.Question Choices []edulab.QuestionChoice `json:"choices"` }
func GroupQuestions ¶
func GroupQuestions(questions []edulab.Question, choices []edulab.QuestionChoice) []Question
type QuestionType ¶
func QuestionTypes ¶
func QuestionTypes(printer *message.Printer) []QuestionType
Click to show internal directories.
Click to hide internal directories.