30 lines
648 B
Go
30 lines
648 B
Go
package diff
|
|
|
|
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
|
|
|
var name = "diff"
|
|
|
|
type Conf struct {
|
|
PassComment string `default:"🥳Passed!\n"`
|
|
FailComment string `default:"🧐Failed...\n"`
|
|
FailOnNotAccepted bool `default:"true"`
|
|
ForceQuitOnFailed bool `default:"false"`
|
|
Cases []struct {
|
|
Outputs []struct {
|
|
Score int
|
|
FileName string
|
|
AnswerPath string
|
|
CompareSpace bool
|
|
AlwaysHide bool
|
|
ForceQuitOnDiff bool
|
|
MaxDiffLength int `default:"2048"` // just for reference
|
|
}
|
|
}
|
|
}
|
|
|
|
type Diff struct{}
|
|
|
|
func init() {
|
|
stage.RegisterParser(name, &Diff{})
|
|
}
|