exec

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(name string, arg ...string) (string, error)

Types

type BaseExecuter

type BaseExecuter struct{}

func (*BaseExecuter) Run

func (r *BaseExecuter) Run(name string, arg ...string) (string, error)

type Executer

type Executer interface {
	Run(name string, arg ...string) (string, error)
}

func NewBaseExecuter

func NewBaseExecuter() Executer

func NewRootExecuter

func NewRootExecuter() Executer

type RootExeucter

type RootExeucter struct{}

func (*RootExeucter) Run

func (r *RootExeucter) Run(name string, arg ...string) (string, error)

Jump to

Keyboard shortcuts

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