Documentation ¶ Index ¶ type Func type Function func NewFunction(f Func) *Function func (s *Function) Execute(stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string) (int, error) func (s *Function) SafelyExecute(_ sandbox.Sandbox, stdin io.Reader, stdout io.Writer, stderr io.Writer, ...) (int, error) type Stdlib func NewStdlib(path string) *Stdlib func (s *Stdlib) Execute(stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Func ¶ type Func func(stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string) (int, error) type Function ¶ type Function struct { // contains filtered or unexported fields } func NewFunction ¶ func NewFunction(f Func) *Function func (*Function) Execute ¶ func (s *Function) Execute(stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string) (int, error) func (*Function) SafelyExecute ¶ func (s *Function) SafelyExecute(_ sandbox.Sandbox, stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string) (int, error) type Stdlib ¶ type Stdlib struct { Cmd *exec.Cmd Path string } func NewStdlib ¶ func NewStdlib(path string) *Stdlib func (*Stdlib) Execute ¶ func (s *Stdlib) Execute(stdin io.Reader, stdout io.Writer, stderr io.Writer, args ...string) (int, error) Source Files ¶ View all Source files executable.gofunction.gostdlib.go Directories ¶ Show internal Expand all Path Synopsis checker Package checker contains different implementation of the interface defined as github.com/mraron/njudge/pkg/problems.Checker Package checker contains different implementation of the interface defined as github.com/mraron/njudge/pkg/problems.Checker Click to show internal directories. Click to hide internal directories.