Documentation ¶
Index ¶
- func CheckFilename(receiptPath string) error
- func GetFilePaths(inputPath string) ([]string, error)
- func HandleIgnoreReceipts(receiptMap *map[string]Submission)
- func WriteLearnReceipt(path string, sub Submission) error
- func WriteSubmissionsToCSV(subs []Submission, outputPath string) error
- type Submission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFilename ¶
func GetFilePaths ¶
func HandleIgnoreReceipts ¶
func HandleIgnoreReceipts(receiptMap *map[string]Submission)
func WriteLearnReceipt ¶ added in v0.2.2
func WriteLearnReceipt(path string, sub Submission) error
write a receipt from the submission
func WriteSubmissionsToCSV ¶
func WriteSubmissionsToCSV(subs []Submission, outputPath string) error
Types ¶
type Submission ¶
type Submission struct { Revision int `csv:"Revision"` Action string `csv:"Action"` FirstName string `csv:"FirstName"` LastName string `csv:"LastName"` Matriculation string `csv:"Matriculation"` Assignment string `csv:"Assignment"` DateSubmitted string `csv:"DateSubmitted"` CurrentMark string `csv:"CurrentMark"` SubmissionField string `csv:"SubmissionField"` Comments string `csv:"Comments"` OriginalFilename string `csv:"OriginalFilename"` Filename string `csv:"Filename"` ExamNumber string `csv:"ExamNumber"` MatriculationError string `csv:"MatriculationError"` ExamNumberError string `csv:"ExamNumberError"` FiletypeError string `csv:"FiletypeError"` FilenameError string `csv:"FilenameError"` NumberOfPages string `csv:"NumberOfPages"` FilesizeMB float64 `csv:"FilesizeMB"` NumberOfFiles int `csv:"NumberOfFiles"` OwnPath string `csv:"OwnPath"` }
func ParseLearnReceipt ¶
func ParseLearnReceipt(inputPath string) (Submission, error)
Click to show internal directories.
Click to hide internal directories.