Documentation
¶
Index ¶
- func ParserAndIdentifier(opts ...Option) (problems.ConfigParser, problems.ConfigIdentifier)
- type Attachment
- type Checker
- type Option
- type Problem
- func (p Problem) Attachments() problems.Attachments
- func (p Problem) Checker() problems.Checker
- func (p Problem) Files() []problems.File
- func (p Problem) GetTaskType() problems.TaskType
- func (p Problem) InputOutputFiles() (string, string)
- func (p Problem) Languages() []language.Language
- func (p Problem) MemoryLimit() int
- func (p Problem) Name() string
- func (p Problem) Statements() problems.Contents
- func (p Problem) StatusSkeleton(name string) (*problems.Status, error)
- func (p Problem) Tags() []string
- func (p Problem) TimeLimit() int
- func (p Problem) Titles() problems.Contents
- type Statement
- type Subtask
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParserAndIdentifier ¶
func ParserAndIdentifier(opts ...Option) (problems.ConfigParser, problems.ConfigIdentifier)
Types ¶
type Attachment ¶
type Problem ¶
type Problem struct {
Path string `yaml:"-"`
GeneratedStatementList problems.Contents `yaml:"-"`
AttachmentList problems.Attachments `yaml:"-"`
ShortName string `yaml:"shortname"`
TitleList []Title `yaml:"titles"`
StatementList []Statement `yaml:"statements"`
AttachmentInfo []Attachment `yaml:"attachments"`
Tests struct {
TaskType string `yaml:"task_type"`
InputFile string `yaml:"input_file"`
OutputFile string `yaml:"output_file"`
MemoryLimit int `yaml:"memory_limit"`
TimeLimit float64 `yaml:"time_limit"`
TestCount int `yaml:"test_count"`
InputPattern string `yaml:"input_pattern"`
OutputPattern string `yaml:"output_pattern"`
InputList []string `yaml:"input_list"`
OutputList []string `yaml:"output_list"`
Checker Checker `yaml:"checker"`
FeedbackType string `yaml:"feedback_type"`
Subtasks []Subtask `yaml:"subtasks"`
} `yaml:"tests"`
}
func (Problem) Attachments ¶
func (p Problem) Attachments() problems.Attachments
func (Problem) GetTaskType ¶
func (Problem) InputOutputFiles ¶
func (Problem) MemoryLimit ¶
func (Problem) Statements ¶
func (Problem) StatusSkeleton ¶
Click to show internal directories.
Click to hide internal directories.