Documentation
¶
Overview ¶
Package shell augments the standard library os/exec Cmd struct and functions with convenience functions for reading piped output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
Cmd extends the exec.Cmd struct with convenience functions for reading piped output.
func Command ¶
Command returns the GinCmd struct to execute the named program with the given arguments.
type Error ¶
type Error struct { // The error that was returned by the underlying system or API call UError string // The function where the error originated Origin string // Human-readable description of error and conditions Description string }
Error is used to return errors caused by web requests, API calls, or system calls. It implements the error built-in interface. The Error() method returns the Description unless it is not set, in which case it returns the Underlying Error (UError) message.
Click to show internal directories.
Click to hide internal directories.