exec

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashRunner

type BashRunner struct{}

BashRunner is bash command runner

Example
br := BashRunner{}

scanner, _ := br.Run("ls ./")

for scanner.Scan() {
	fmt.Print(scanner.Text() + "\n")
}
Output:

exec.go
exec_test.go

func (BashRunner) Run

func (r BashRunner) Run(command string) (*bufio.Scanner, error)

Run will execute a bash command

Jump to

Keyboard shortcuts

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