native_judge

package
v0.0.0-...-5379b69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineMatcher

type LineMatcher struct {
	ErrBuf bytes.Buffer
	// contains filtered or unexported fields
}

func LineMatch

func LineMatch(r io.Reader) *LineMatcher

func (*LineMatcher) CompLine

func (m *LineMatcher) CompLine(i []byte)

func (*LineMatcher) GetJudgeResult

func (m *LineMatcher) GetJudgeResult() ([]byte, error)

func (*LineMatcher) GetJudgeStatus

func (m *LineMatcher) GetJudgeStatus(_ []byte) (tarus.JudgeStatus, error)

func (*LineMatcher) Write

func (m *LineMatcher) Write(p []byte) (n int, err error)

type StrictMatcher

type StrictMatcher struct {
	ErrBuf bytes.Buffer
	// contains filtered or unexported fields
}

func StrictMatch

func StrictMatch(r io.Reader) *StrictMatcher

func (*StrictMatcher) GetJudgeResult

func (m *StrictMatcher) GetJudgeResult() ([]byte, error)

func (*StrictMatcher) GetJudgeStatus

func (m *StrictMatcher) GetJudgeStatus(_ []byte) (tarus.JudgeStatus, error)

func (*StrictMatcher) Write

func (m *StrictMatcher) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL