Back to godoc.org

Package exitcode

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

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

Index

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