executable

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis
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

Jump to

Keyboard shortcuts

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