Documentation ¶
Index ¶
- func GetJudgeResult(stdout *bytes.Buffer) string
- func GetRuntimeTime(stderr *bytes.Buffer) float64
- func InitCore()
- func ReadBytesByPath(path string) []byte
- func Run(task models.JudgementTask, result *models.JudgementResult)
- func StartJudge(task models.JudgementTask) (*bytes.Buffer, *bytes.Buffer)
- func VerifyAnswer(task models.JudgementTask, result *models.JudgementResult) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(task models.JudgementTask, result *models.JudgementResult)
func StartJudge ¶
运行容器,获取输出
func VerifyAnswer ¶
func VerifyAnswer(task models.JudgementTask, result *models.JudgementResult) error
校验答案的主方法
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.