Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCompileError = errors.New("Compile Error. check your source code.")
Functions ¶
func IsAliveSession ¶
Types ¶
type Commentary ¶
type Description ¶
type Description struct { // TODO: Unknown type // "bookmarks": null, // "source": null, // "recommend": null, Commentaries []*Commentary `json:"commentaries"` CreatedAt int64 `json:"created_at"` HTML string `json:"html"` IsSolved bool `json:"isSolved"` Language string `json:"language"` MemoryLimit int `json:"memory_limit"` ProblemId string `json:"problem_id"` Recommendations int `json:"recommendations"` Score float64 `json:"score"` ServerTime int `json:"server_time"` SolvedUser int `json:"solvedUser"` SuccessRate float64 `json:"successRate"` TimeLimit int `json:"time_limit"` // sec }
func GetDescriptionByProblemId ¶
func GetDescriptionByProblemId(cookie, id string) (*Description, error)
func (*Description) String ¶
func (d *Description) String() string
type SampleInputoutput ¶
type Samples ¶
type Samples struct {
Samples []*SampleInputoutput
}
func GetSampleInputOutput ¶
func (*Samples) ExecSamples ¶
type SubmissionStatus ¶
type SubmissionStatus struct { CaseVerdicts []caseVerdicts `json:"caseVerdicts"` CompileError string `json:"compileError"` RuntimeError string `json:"runtimeError"` UserOutput string `json:"userOutput"` ProblemId string Time time.Time }
func Status ¶
func Status(cookie, token, problemId string) (*SubmissionStatus, error)
func (*SubmissionStatus) CheckAC ¶
func (s *SubmissionStatus) CheckAC() (string, error)
func (*SubmissionStatus) String ¶
func (stat *SubmissionStatus) String() string
Click to show internal directories.
Click to hide internal directories.