repocsv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(file *os.File) repository.FileInterface

Types

type Question

type Question struct {
	Test      string `csv:"Question text"`
	CreatedAt string `csv:"Created At"`
	Choice1   string `csv:"Choice 1"`
	Choice2   string `csv:"Choice"`
	Choice3   string `csv:"Choice 3"`
}

func NewQuestionFromModel

func NewQuestionFromModel(in model.Question) Question

func (*Question) Model

func (q *Question) Model() model.Question

type QuestionList

type QuestionList []Question

func NewQuestionListFromModel

func NewQuestionListFromModel(in model.QuestionList) QuestionList

func (QuestionList) Model

func (q QuestionList) Model() model.QuestionList

Jump to

Keyboard shortcuts

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