exech

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package exech provides simple way to execute binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(name string, stdin []byte, args ...string) (stdout []byte, err error)

Exec execute binary named by name with arguments args. stdin is used as standard input. If binary write something into stderr this data will be return in err (can be accessed via err.Error()). Error will be also returned (type of exec.ExitError) if binary exits with none zero code. Exec returns standard output as slice of bytes and error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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