Back to godoc.org

Package osutil

v3.2.0+incompatible
Latest Go to latest
Published: Aug 29, 2019 | License: AGPL-3.0 | Module: github.com/documize/community

Index

Package Files

func CommandWithTimeout

func CommandWithTimeout(command *exec.Cmd, timeout time.Duration) ([]byte, error)

CommandWithTimeout runs a command but stops it if it does not finish within the timout above.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier