Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleExitCoder ¶
func HandleExitCoder(err error)
func IsErrConnectionRefused ¶
IsErrConnectionRefused return whether err is "connect: connection refused"
Types ¶
type ExitCodeError ¶
type ExitCodeError struct {
// contains filtered or unexported fields
}
ExitCodeError is to allow the program to exit with status code without outputting an error message.
func NewExitCoderErr ¶
func NewExitCoderErr(exitCode int) ExitCodeError
func (ExitCodeError) Error ¶
func (e ExitCodeError) Error() string
func (ExitCodeError) ExitCode ¶
func (e ExitCodeError) ExitCode() int
Click to show internal directories.
Click to hide internal directories.