Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleExitCoder ¶ added in v1.2.0
func HandleExitCoder(err error)
func IsErrConnectionRefused ¶
IsErrConnectionRefused return whether err is "connect: connection refused"
func IsErrHTTPResponseToHTTPSClient ¶
IsErrHTTPResponseToHTTPSClient returns whether err is "http: server gave HTTP response to HTTPS client"
Types ¶
type ExitCodeError ¶ added in v1.2.0
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 ¶ added in v1.2.0
func NewExitCoderErr(exitCode int) ExitCodeError
func (ExitCodeError) Error ¶ added in v1.3.0
func (e ExitCodeError) Error() string
func (ExitCodeError) ExitCode ¶ added in v1.2.0
func (e ExitCodeError) ExitCode() int
Click to show internal directories.
Click to hide internal directories.