Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command runs a command with its arguments and returns the stdout or stderr or the error.
func CommandWithContext ¶ added in v1.9.0
func CommandWithContext(ctx context.Context, command string, arguments ...string) (chan string, error)
CommandWithContext runs a command with its arguments in background. The provided context is used to kill the command (by calling os.Process.Kill) if the context becomes done before the command completes on its own. The return channel can be used to read the stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.