Back to

Package exitcode

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


Package exitcode provides common methods to extract exit codes from errors returned by exec.Cmd.


func Get

func Get(err error) (int, bool)

Get returns the process process exit return code given an error returned by exec.Cmd's Wait or Run methods. If no exit code is present, Get will return false.

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

Jump to identifier

Keyboard shortcuts

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