process

package
v0.0.0-...-10abb40 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: GPL-3.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 Process

type Process struct {
	Out <-chan string
	In  chan<- string
	// contains filtered or unexported fields
}

Wrapper around the internal go cmd It provides channels to write to stdin and read from stdout

func Spawn

func Spawn(command string, args ...string) (*Process, error)

Create a new process executing the provided command.

func (*Process) IsRunning

func (p *Process) IsRunning() bool

func (*Process) Start

func (p *Process) Start() error

Start the command this process wraps around

func (*Process) Stop

func (p *Process) Stop() error

Stop the underlying process

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳