Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadSolutionTag = errors.New("bad solution tag")
)
Functions ¶
This section is empty.
Types ¶
type Executable ¶
type Executable struct {
Source Source `xml:"source"`
}
type Files ¶
type Files struct { Resources struct { Files []File `xml:"file"` } `xml:"resources"` Executables struct { Executables []Executable `xml:"executable"` } `xml:"executables"` }
type Group ¶
type Group struct { FeedbackPolicy string `xml:"feedback-policy,attr"` PointsPolicy string `xml:"points-policy,attr"` Name string `xml:"name,attr"` Points float32 `xml:"points,attr"` Dependencies struct { Dependencies []struct { Group string `xml:"group,attr"` } `xml:"dependency"` } `xml:"dependencies"` }
type ProblemXML ¶
type ProblemXML struct { Revision int `xml:"revision,attr"` ShortName string `xml:"short-name,attr"` Assets Assets `xml:"assets"` Files Files `xml:"files"` Statements struct { Statements []Statement `xml:"statement"` } `xml:"statements"` Judging Judging `xml:"judging"` Tags struct { Tags []Tag `xml:"tag"` } `xml:"tags"` }
type Test ¶
type Test struct { Description string `xml:"description,attr"` Method string `xml:"method,attr"` Sample bool `xml:"sample,attr"` Cmd string `xml:"cmd,attr"` Verdict string `xml:"verdict,attr"` Group string `xml:"group,attr"` Points float32 `xml:"points,attr"` FromFile string `xml:"from-file,attr"` }
type TestSet ¶
type TestSet struct { Name string `xml:"name,attr"` TimeLimit int `xml:"time-limit"` MemoryLimit int `xml:"memory-limit"` TestCount int `xml:"test-count"` InputPathPattern string `xml:"input-path-pattern"` OutputPathPattern string `xml:"output-path-pattern"` AnswerPathPattern string `xml:"answer-path-pattern"` Tests struct { Tests []Test `xml:"test"` } `xml:"tests"` Groups struct { Groups []Group `xml:"group"` } `xml:"groups"` }
Click to show internal directories.
Click to hide internal directories.