views

package
v0.0.0-...-22b9301 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuestionAnswersFromForm

func QuestionAnswersFromForm(questionViews []QuestionView) []models.QuestionAnswer

func QuestionsHaveErrors

func QuestionsHaveErrors(qs []QuestionView) bool

Types

type QuestionView

type QuestionView struct {
	models.Question
	Error string
	Value string
}

func QuestionsToView

func QuestionsToView(qs []models.Question) []QuestionView

func SortQuestionsByOrder

func SortQuestionsByOrder(qs []QuestionView) []QuestionView

type TemplateView

type TemplateView struct {
	Title            string
	TitleError       string
	Description      string
	DescriptionError string
	QuestionViews    []QuestionView
}

func (TemplateView) HasErrors

func (t TemplateView) HasErrors() bool

Jump to

Keyboard shortcuts

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