Versions in this module Expand all Collapse all v1 v1.1.0 Jan 31, 2026 v1.0.0 Jan 29, 2026 Changes in this version + const DefaultMemoryLimitInBytes + var ErrMemoryLimitExceeded = errors.New("process exceeded memory limit") + type Executable struct + MemoryLimitInBytes int64 + Path string + Process *os.Process + ShouldUsePty bool + TimeoutInMilliseconds int + WorkingDir string + func NewExecutable(path string) *Executable + func NewVerboseExecutable(path string, loggerFunc func(string)) *Executable + func (e *Executable) Clone() *Executable + func (e *Executable) HasExited() bool + func (e *Executable) Kill() error + func (e *Executable) Run(args ...string) (ExecutableResult, error) + func (e *Executable) RunWithStdin(stdin []byte, args ...string) (ExecutableResult, error) + func (e *Executable) SendLine(line string) error + func (e *Executable) Start(args ...string) error + func (e *Executable) Wait() (ExecutableResult, error) + func (e *Executable) WriteStdin(data []byte) error + type ExecutableResult struct + ExitCode int + Stderr []byte + Stdout []byte