Documentation ¶
Overview ¶
psyscall has functions to examine syscall.Errno errors
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errno ¶
Errno scans an error chain for a syscall.Errno type. Errno returns syscall.Errno 0x0 if none exists. Note: syscall.Errno.Error has value receiver. Errno checks:
Errno(nil) == 0 → true. if errno != 0 {… int(errno) provides the numeric value. if errno == syscall.ENOENT… fmt.Printf("%v", errno) → state not recoverable fmt.Printf("0x%x", int(errno)) → 0x68
func IsConnectionRefused ¶
IsConnectionRefused searches the error chsin of err for syscall.ECONNREFUSED net.Dialer errors for closed socket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.