Documentation ¶
Index ¶
- Constants
- func AnswerSheet(test *TestBundleSt, sections []SectionSt, isKey, showAll bool, ...) []string
- func CloseCockroachDB(db *gorm.DB) error
- func DocumentBegin(test *TestBundleSt) []string
- func DocumentEnd(test *TestBundleSt) []string
- func MakeBundle(dsn string, testJSON TestJSONSt, sections []SectionSt) (*arraylist.List[*TestBundleSt], error)
- func OpenCockroachDB(dsn string, autoMigrate bool) (*gorm.DB, error)
- func ProcessInclude(section JSONSectionSt, assetdir string)
- func ProcessIncludeAiken(section JSONSectionSt, assetdir string)
- func ProcessIncludeQuestgen(section JSONSectionSt, assetdir string)
- func ProcessWordsInclude(section JSONSectionSt, assetdir string)
- func QuestDistoSheet(test TestJSONSt, sections []SectionSt) []string
- func QuizSheet(quiz *TestBundleSt, sections []SectionSt, qNum *QuestNumSt) []string
- func TestSheet(test *TestBundleSt, sections []SectionSt, qNum *QuestNumSt) []string
- type ClassJSONSt
- type ClassMapSt
- type CompQuestionsSt
- func (c *CompQuestionsSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (c *CompQuestionsSt) DistribLatex(testTitle string, numTest uint) []string
- func (c *CompQuestionsSt) GetHead() *SectionHeadSt
- func (c *CompQuestionsSt) Init(section JSONSectionSt, numTest uint)
- func (c *CompQuestionsSt) TestForm(gf *GoogleFormSt, student uint) error
- func (c *CompQuestionsSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (c *CompQuestionsSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type CustomSt
- func (c *CustomSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (c *CustomSt) DistribLatex(testTitle string, numTest uint) []string
- func (c *CustomSt) GetHead() *SectionHeadSt
- func (c *CustomSt) Init(section JSONSectionSt, numTest uint)
- func (c *CustomSt) TestForm(gf *GoogleFormSt, student uint) error
- func (c *CustomSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (c *CustomSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type FlagsSt
- type GoogleFormSt
- type GoogleFormStatus
- type GormClass
- type GormClassSection
- type GormQuestion
- type GormQuestionChoice
- type GormStudent
- type GormTest
- type GormTestAttempt
- type GormTestSession
- type GromPreference
- type JSONSectionSt
- type MultipleChoiceSt
- func (m *MultipleChoiceSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (m *MultipleChoiceSt) DistribLatex(testTitle string, numTest uint) []string
- func (m *MultipleChoiceSt) GetHead() *SectionHeadSt
- func (m *MultipleChoiceSt) Init(section JSONSectionSt, numTest uint)
- func (m *MultipleChoiceSt) TestForm(gf *GoogleFormSt, student uint) error
- func (m *MultipleChoiceSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (m *MultipleChoiceSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type NLStringListSt
- type NLStringSt
- type Oauth2ResponseSt
- type PassageCompletionSt
- func (p *PassageCompletionSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (p *PassageCompletionSt) DistribLatex(testTitle string, numTest uint) []string
- func (p *PassageCompletionSt) GetHead() *SectionHeadSt
- func (p *PassageCompletionSt) Init(section JSONSectionSt, numTest uint)
- func (p *PassageCompletionSt) TestForm(gf *GoogleFormSt, student uint) error
- func (p *PassageCompletionSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (pc *PassageCompletionSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type PathStrSt
- type Preference
- type QuestNumSt
- type QuestgenQuestionSt
- type QuestionListSt
- type QuestionSetSt
- type QuestionsSt
- type QuizSt
- func (q *QuizSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (q *QuizSt) DistribLatex(testTitle string, numTest uint) []string
- func (q *QuizSt) GetHead() *SectionHeadSt
- func (q *QuizSt) Init(section JSONSectionSt, numTest uint)
- func (q *QuizSt) TestForm(gf *GoogleFormSt, student uint) error
- func (q *QuizSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (q *QuizSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type RTFDoc
- type ReadingCompSt
- func (r *ReadingCompSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (r *ReadingCompSt) DistribLatex(testTitle string, numTest uint) []string
- func (r *ReadingCompSt) GetHead() *SectionHeadSt
- func (r *ReadingCompSt) Init(section JSONSectionSt, numTest uint)
- func (r *ReadingCompSt) TestForm(gf *GoogleFormSt, student uint) error
- func (r *ReadingCompSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (r *ReadingCompSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type SectionHeadSt
- type SectionSt
- type StringListSt
- type TakerClass
- type TakerSession
- type TestBundleSt
- type TestHeadSt
- type TestJSONSt
- type TestSt
- type WordDefMapSt
- type WordDefSt
- type WordDistMapSt
- type WordListSt
- type WordMatchSt
- func (w *WordMatchSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (w *WordMatchSt) DistribLatex(testTitle string, numTest uint) []string
- func (w *WordMatchSt) GetHead() *SectionHeadSt
- func (w *WordMatchSt) Init(section JSONSectionSt, numTest uint)
- func (w *WordMatchSt) TestForm(gf *GoogleFormSt, student uint) error
- func (w *WordMatchSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (w *WordMatchSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- func (w *WordMatchSt) ToQuestions() error
- type WordProblemSt
- func (w *WordProblemSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
- func (w *WordProblemSt) DistribLatex(testTitle string, numTest uint) []string
- func (w *WordProblemSt) GetHead() *SectionHeadSt
- func (w *WordProblemSt) Init(section JSONSectionSt, numTest uint)
- func (w *WordProblemSt) TestForm(gf *GoogleFormSt, student uint) error
- func (w *WordProblemSt) TestLatex(student uint, qNum *QuestNumSt) []string
- func (w *WordProblemSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
- type WordsSt
Constants ¶
View Source
const ZERO_WIDTH_SPACE = "\u200b"
Variables ¶
This section is empty.
Functions ¶
func AnswerSheet ¶
func AnswerSheet(test *TestBundleSt, sections []SectionSt, isKey, showAll bool, qNum *QuestNumSt) []string
func CloseCockroachDB ¶
func DocumentBegin ¶
func DocumentBegin(test *TestBundleSt) []string
func DocumentEnd ¶
func DocumentEnd(test *TestBundleSt) []string
func MakeBundle ¶
func MakeBundle(dsn string, testJSON TestJSONSt, sections []SectionSt) (*arraylist.List[*TestBundleSt], error)
func ProcessInclude ¶
func ProcessInclude(section JSONSectionSt, assetdir string)
func ProcessIncludeAiken ¶
func ProcessIncludeAiken(section JSONSectionSt, assetdir string)
func ProcessIncludeQuestgen ¶
func ProcessIncludeQuestgen(section JSONSectionSt, assetdir string)
func ProcessWordsInclude ¶
func ProcessWordsInclude(section JSONSectionSt, assetdir string)
func QuestDistoSheet ¶
func QuestDistoSheet(test TestJSONSt, sections []SectionSt) []string
func QuizSheet ¶
func QuizSheet(quiz *TestBundleSt, sections []SectionSt, qNum *QuestNumSt) []string
func TestSheet ¶
func TestSheet(test *TestBundleSt, sections []SectionSt, qNum *QuestNumSt) []string
Types ¶
type ClassJSONSt ¶
type ClassMapSt ¶
func (*ClassMapSt) UnmarshalJSON ¶
func (cm *ClassMapSt) UnmarshalJSON(data []byte) error
type CompQuestionsSt ¶
type CompQuestionsSt struct { SectionHeadSt Questions QuestionListSt AllQuestions QuestionSetSt }
func (*CompQuestionsSt) AnswerLatex ¶
func (c *CompQuestionsSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*CompQuestionsSt) DistribLatex ¶
func (c *CompQuestionsSt) DistribLatex(testTitle string, numTest uint) []string
func (*CompQuestionsSt) GetHead ¶
func (c *CompQuestionsSt) GetHead() *SectionHeadSt
func (*CompQuestionsSt) Init ¶
func (c *CompQuestionsSt) Init(section JSONSectionSt, numTest uint)
func (*CompQuestionsSt) TestForm ¶
func (c *CompQuestionsSt) TestForm(gf *GoogleFormSt, student uint) error
func (*CompQuestionsSt) TestLatex ¶
func (c *CompQuestionsSt) TestLatex(student uint, qNum *QuestNumSt) []string
func (*CompQuestionsSt) TestRTF ¶
func (c *CompQuestionsSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
type CustomSt ¶
type CustomSt struct { SectionHeadSt Questions QuestionListSt AllQuestions QuestionSetSt AnswerText *arraylist.List[string] Answers *arraylist.List[string] }
func (*CustomSt) AnswerLatex ¶
func (c *CustomSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*CustomSt) DistribLatex ¶
func (*CustomSt) GetHead ¶
func (c *CustomSt) GetHead() *SectionHeadSt
func (*CustomSt) Init ¶
func (c *CustomSt) Init(section JSONSectionSt, numTest uint)
type FlagsSt ¶
type FlagsSt struct {
ShowAll, SaveTex, CreateDistro, CreateRtf, CreateForm, CreatePDF, DBImport,
ContinuousNumbering, ImportClass, ImportSession bool
}
type GoogleFormSt ¶
type GoogleFormSt struct { Status GoogleFormStatus // contains filtered or unexported fields }
func NewGoogleForm ¶
func NewGoogleForm(dsn, formCredentials string) *GoogleFormSt
func (*GoogleFormSt) AddQuestions ¶
func (gf *GoogleFormSt) AddQuestions(questions QuestionSetSt, qPoints int64) error
func (*GoogleFormSt) AddSection ¶
func (gf *GoogleFormSt) AddSection(title, desc string) error
func (*GoogleFormSt) Create ¶
func (gf *GoogleFormSt) Create(title, documentTitle, desc string) (*GoogleFormSt, error)
type GoogleFormStatus ¶
type GoogleFormStatus int32
const ( Connecting GoogleFormStatus = iota Available Unknown )
type GormClass ¶
type GormClass struct { gorm.Model Subject string `gorm:"uniqueIndex:index:idx_class"` Sections []GormClassSection Tests []GormTest }
type GormClassSection ¶
type GormClassSection struct { gorm.Model Section string `gorm:"uniqueIndex:index:idx_section"` GormClassID uint `gorm:"uniqueIndex:index:idx_section"` Students []GormStudent }
type GormQuestion ¶
type GormQuestionChoice ¶
type GormStudent ¶
type GormTest ¶
type GormTest struct { gorm.Model Title string `gorm:"index:idx_test"` Length uint MinQuestions uint GormClassID uint Sessions []GormTestSession Attempts []GormTestAttempt Questions []GormQuestion }
type GormTestAttempt ¶
type GormTestSession ¶
type GromPreference ¶
type JSONSectionSt ¶
type JSONSectionSt struct { Type string `json:"type"` SectionTitle string `json:"sectionTitle"` NumLines string `json:"numLines"` Title string `json:"title"` Points uint `json:"points"` NumQuest uint `json:"questionsOntest"` NumCol uint `json:"numCol"` AnswerLines bool `json:"answerLines"` QuizBox bool `json:"quizBox"` KeepOrder bool `json:"keepOrder"` AnswerText WordsSt `json:"answerText"` WordList WordsSt `json:"word-list"` Include WordsSt `json:"include"` IncludeQuestgen WordsSt `json:"includeQuestgen"` IncludeAiken WordsSt `json:"includeAiken"` Answers WordsSt `json:"answers"` ColumnHead WordsSt `json:"columnHead"` Instructions NLStringSt `json:"instructions"` FormInstructions NLStringSt `json:"formInstructions"` Text NLStringSt `json:"text"` Words WordDefMapSt `json:"words"` Questions QuestionSetSt `json:"questions"` AssetDir string `json:"-"` }
type MultipleChoiceSt ¶
type MultipleChoiceSt struct { SectionHeadSt Questions QuestionListSt AllQuestions QuestionSetSt }
func (*MultipleChoiceSt) AnswerLatex ¶
func (m *MultipleChoiceSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*MultipleChoiceSt) DistribLatex ¶
func (m *MultipleChoiceSt) DistribLatex(testTitle string, numTest uint) []string
func (*MultipleChoiceSt) GetHead ¶
func (m *MultipleChoiceSt) GetHead() *SectionHeadSt
func (*MultipleChoiceSt) Init ¶
func (m *MultipleChoiceSt) Init(section JSONSectionSt, numTest uint)
func (*MultipleChoiceSt) TestForm ¶
func (m *MultipleChoiceSt) TestForm(gf *GoogleFormSt, student uint) error
func (*MultipleChoiceSt) TestLatex ¶
func (m *MultipleChoiceSt) TestLatex(student uint, qNum *QuestNumSt) []string
func (*MultipleChoiceSt) TestRTF ¶
func (m *MultipleChoiceSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
type NLStringListSt ¶
type NLStringListSt struct { *arraylist.List[NLStringSt] }
func (*NLStringListSt) UnmarshalJSON ¶
func (nls *NLStringListSt) UnmarshalJSON(data []byte) error
type NLStringSt ¶
type NLStringSt struct {
// contains filtered or unexported fields
}
func (*NLStringSt) CleanString ¶
func (nls *NLStringSt) CleanString() string
func (*NLStringSt) UnmarshalJSON ¶
func (nls *NLStringSt) UnmarshalJSON(data []byte) error
type Oauth2ResponseSt ¶
type PassageCompletionSt ¶
type PassageCompletionSt struct { SectionHeadSt WordList StringListSt Answers StringListSt Questions QuestionListSt // not used }
func (*PassageCompletionSt) AnswerLatex ¶
func (p *PassageCompletionSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*PassageCompletionSt) DistribLatex ¶
func (p *PassageCompletionSt) DistribLatex(testTitle string, numTest uint) []string
func (*PassageCompletionSt) GetHead ¶
func (p *PassageCompletionSt) GetHead() *SectionHeadSt
func (*PassageCompletionSt) Init ¶
func (p *PassageCompletionSt) Init(section JSONSectionSt, numTest uint)
func (*PassageCompletionSt) TestForm ¶
func (p *PassageCompletionSt) TestForm(gf *GoogleFormSt, student uint) error
func (*PassageCompletionSt) TestLatex ¶
func (p *PassageCompletionSt) TestLatex(student uint, qNum *QuestNumSt) []string
func (*PassageCompletionSt) TestRTF ¶
func (pc *PassageCompletionSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
type PathStrSt ¶
type PathStrSt struct {
TestFile, Outdir, Workdir, Assetdir, Templatepath, ImportFile string
}
type Preference ¶
type Preference struct {
// contains filtered or unexported fields
}
func (*Preference) Del ¶
func (p *Preference) Del(key string) error
func (*Preference) Set ¶
func (p *Preference) Set(key, value string) error
type QuestNumSt ¶
type QuestNumSt struct {
// contains filtered or unexported fields
}
func MakeQuestNum ¶
func MakeQuestNum(sectionNumbering bool) QuestNumSt
func (*QuestNumSt) AddNumber ¶
func (qn *QuestNumSt) AddNumber(add uint32)
func (*QuestNumSt) CurrentNumber ¶
func (qn *QuestNumSt) CurrentNumber() uint32
func (*QuestNumSt) NewSection ¶
func (qn *QuestNumSt) NewSection()
func (*QuestNumSt) NextNumber ¶
func (qn *QuestNumSt) NextNumber() uint32
type QuestgenQuestionSt ¶
type QuestionListSt ¶
type QuestionListSt struct { *arraylist.List[QuestionSetSt] }
type QuestionSetSt ¶
type QuestionSetSt struct { *arraylist.List[*QuestionsSt] }
func (QuestionSetSt) GetQuestions ¶
func (questions QuestionSetSt) GetQuestions(numTest, numQuest, numCol uint, keepOrder bool) QuestionListSt
func (QuestionSetSt) QuestionSet ¶
func (q QuestionSetSt) QuestionSet(numQuest, numTest uint, keepOrder bool) QuestionSetSt
func (*QuestionSetSt) UnmarshalJSON ¶
func (qs *QuestionSetSt) UnmarshalJSON(data []byte) error
type QuestionsSt ¶
type QuestionsSt struct { Answer uint `json:"answer"` NumCol uint `json:"numCol"` Used uint `json:"used"` Required bool `json:"required"` Choices WordsSt `json:"choices"` Answers WordsSt `json:"answers"` Question NLStringSt `json:"question"` Parts NLStringListSt `json:"parts"` }
func (*QuestionsSt) Begin ¶
func (q *QuestionsSt) Begin(outStr []string) []string
func (*QuestionsSt) Lines ¶
func (q *QuestionsSt) Lines(outStr []string, isQuiz bool, head SectionHeadSt) []string
func (*QuestionsSt) Part ¶
func (q *QuestionsSt) Part(outStr []string) []string
type QuizSt ¶
type QuizSt struct { SectionHeadSt Questions QuestionListSt AllQuestions QuestionSetSt }
func (*QuizSt) AnswerLatex ¶
func (q *QuizSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*QuizSt) DistribLatex ¶
func (*QuizSt) GetHead ¶
func (q *QuizSt) GetHead() *SectionHeadSt
func (*QuizSt) Init ¶
func (q *QuizSt) Init(section JSONSectionSt, numTest uint)
type RTFDoc ¶
func (*RTFDoc) PageFooter ¶
func (doc *RTFDoc) PageFooter(head *TestHeadSt)
func (*RTFDoc) PageHeader ¶
func (doc *RTFDoc) PageHeader(head *TestHeadSt)
func (*RTFDoc) Sections ¶
func (doc *RTFDoc) Sections(student uint, sections []SectionSt, qNum *QuestNumSt)
func (*RTFDoc) TestHeader ¶
func (doc *RTFDoc) TestHeader(head *TestHeadSt, sections []SectionSt)
type ReadingCompSt ¶
type ReadingCompSt struct { SectionHeadSt Questions QuestionListSt AllQuestions QuestionSetSt }
func (*ReadingCompSt) AnswerLatex ¶
func (r *ReadingCompSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*ReadingCompSt) DistribLatex ¶
func (r *ReadingCompSt) DistribLatex(testTitle string, numTest uint) []string
func (*ReadingCompSt) GetHead ¶
func (r *ReadingCompSt) GetHead() *SectionHeadSt
func (*ReadingCompSt) Init ¶
func (r *ReadingCompSt) Init(section JSONSectionSt, numTest uint)
func (*ReadingCompSt) TestForm ¶
func (r *ReadingCompSt) TestForm(gf *GoogleFormSt, student uint) error
func (*ReadingCompSt) TestLatex ¶
func (r *ReadingCompSt) TestLatex(student uint, qNum *QuestNumSt) []string
func (*ReadingCompSt) TestRTF ¶
func (r *ReadingCompSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
type SectionHeadSt ¶
type SectionSt ¶
type SectionSt interface { Init(JSONSectionSt, uint) TestLatex(uint, *QuestNumSt) []string TestRTF(*RTFDoc, uint, *QuestNumSt) TestForm(*GoogleFormSt, uint) error AnswerLatex(bool, bool, uint, *QuestNumSt) []string DistribLatex(string, uint) []string GetHead() *SectionHeadSt }
func MakeSections ¶
func MakeSections(testJSON TestJSONSt, assetDir string, showAll bool) ([]SectionSt, error)
type StringListSt ¶
type StringListSt struct { *arraylist.List[NLStringListSt] }
func (StringListSt) UnmarshalJSON ¶
func (sl StringListSt) UnmarshalJSON(data []byte) error
type TakerClass ¶
type TakerSession ¶
type TestBundleSt ¶
type TestBundleSt struct { Student string StudentNum uint *TestHeadSt }
func (*TestBundleSt) CreateDistro ¶
func (distroTest *TestBundleSt) CreateDistro(pathStrings PathStrSt, flags FlagsSt, test TestSt)
type TestHeadSt ¶
type TestJSONSt ¶
type TestJSONSt struct { Subject string `json:"subject"` Grade string `json:"grade"` Title string `json:"title"` RTFTitle string `json:"rtfTitle"` School string `json:"school"` Logo string `json:"logo"` Date string `json:"date"` Time uint `json:"time"` NoKey bool `json:"noKey"` MinQuestions uint `json:"minQuestions"` Students WordsSt `json:"students"` Classes ClassMapSt `json:"classes"` Sections []JSONSectionSt `json:"sections"` }
func GetTestJson ¶
func GetTestJson(fileName, assetdir string) (TestJSONSt, error)
type TestSt ¶
type TestSt struct { TestJSON TestJSONSt Sections []SectionSt TestBundle *arraylist.List[*TestBundleSt] Template []byte }
type WordDefMapSt ¶
type WordDefMapSt struct { *treemap.Map[NLStringSt, NLStringSt] }
func (*WordDefMapSt) UnmarshalJSON ¶
func (wdm *WordDefMapSt) UnmarshalJSON(data []byte) error
type WordDefSt ¶
type WordDefSt struct { Word NLStringSt Def NLStringSt Answer NLStringSt }
type WordDistMapSt ¶
type WordDistMapSt struct { *treemap.Map[NLStringSt, uint] }
func (WordDistMapSt) WordSet ¶
func (w WordDistMapSt) WordSet(numQuest, numTest uint) NLStringListSt
type WordListSt ¶
type WordMatchSt ¶
type WordMatchSt struct { SectionHeadSt *arraylist.List[WordListSt] WordDist WordDistMapSt AllQuestions QuestionSetSt AllWords *WordDefMapSt }
func (*WordMatchSt) AnswerLatex ¶
func (w *WordMatchSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*WordMatchSt) DistribLatex ¶
func (w *WordMatchSt) DistribLatex(testTitle string, numTest uint) []string
func (*WordMatchSt) GetHead ¶
func (w *WordMatchSt) GetHead() *SectionHeadSt
func (*WordMatchSt) Init ¶
func (w *WordMatchSt) Init(section JSONSectionSt, numTest uint)
func (*WordMatchSt) TestForm ¶
func (w *WordMatchSt) TestForm(gf *GoogleFormSt, student uint) error
func (*WordMatchSt) TestLatex ¶
func (w *WordMatchSt) TestLatex(student uint, qNum *QuestNumSt) []string
func (*WordMatchSt) TestRTF ¶
func (w *WordMatchSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
func (*WordMatchSt) ToQuestions ¶
func (w *WordMatchSt) ToQuestions() error
type WordProblemSt ¶
type WordProblemSt struct { SectionHeadSt Questions QuestionListSt AllQuestions QuestionSetSt }
func (*WordProblemSt) AnswerLatex ¶
func (w *WordProblemSt) AnswerLatex(isKey, showAll bool, student uint, qNum *QuestNumSt) []string
func (*WordProblemSt) DistribLatex ¶
func (w *WordProblemSt) DistribLatex(testTitle string, numTest uint) []string
func (*WordProblemSt) GetHead ¶
func (w *WordProblemSt) GetHead() *SectionHeadSt
func (*WordProblemSt) Init ¶
func (w *WordProblemSt) Init(section JSONSectionSt, numTest uint)
func (*WordProblemSt) TestForm ¶
func (w *WordProblemSt) TestForm(gf *GoogleFormSt, student uint) error
func (*WordProblemSt) TestLatex ¶
func (w *WordProblemSt) TestLatex(student uint, qNum *QuestNumSt) []string
func (*WordProblemSt) TestRTF ¶
func (w *WordProblemSt) TestRTF(doc *RTFDoc, student uint, qNum *QuestNumSt)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.