Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubmissionsToYaml ¶
func SubmissionsToYaml(sbms []*Submission) (string, error)
func TasksToYaml ¶
func TasksToYamlShort ¶
Types ¶
type Contest ¶
type Language ¶
type Language int
Language represents enum of programming languages
programming languages
func NewLanguage ¶
func (Language) MarshalJSON ¶
func (Language) MarshalYAML ¶
func (*Language) UnmarshalJSON ¶
func (*Language) UnmarshalYAML ¶
type Submission ¶
type Submission struct { ID int `json:"id" yaml:"id"` Source string `json:"source" yaml:"source,omitempty"` Lang Language `json:"lang" yaml:"lang"` Score int `json:"score" yaml:"score"` SourceLength int `json:"source_length" yaml:"source_length"` Status string `json:"status" yaml:"status"` Time int `json:"time,omitempty" yaml:"time,omitempty"` Memory int `json:"memory,omitempty" yaml:"memory,omitempty"` CreatedAt string `json:"created_at" yaml:"created_at"` Task *Task `json:"task,omitempty" yaml:"task,omitempty"` }
func (*Submission) ToYaml ¶
func (sbm *Submission) ToYaml() (string, error)
type Task ¶
type Task struct { ID string `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Title string `json:"title" yaml:"title"` Score int `json:"score,omitempty" yaml:"score,omitempty"` Samples []*Sample `json:"samples,omitempty" yaml:"samples,omitempty"` }
func NewTaskWithFullName ¶
func (*Task) ToYamlShort ¶
Click to show internal directories.
Click to hide internal directories.