Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func As ¶
As finds the first error in errors chain that matches target, and if so, sets target to that error value and returns true. Otherwise, it returns false.
Types ¶
type CallErr ¶
type CallErr struct { Req *http.Request // Resp contains response body Resp *http.Response Err error }
CallErr represents an HTTP call error. Has a Verbose() method that allows getting the http.Request and Response objects. Implements error.
type InvalidJsonErr ¶ added in v1.4.0
type InvalidJsonErr struct {
Err error
}
func (InvalidJsonErr) Error ¶ added in v1.4.0
func (e InvalidJsonErr) Error() string
Errors implements error.Error().
Click to show internal directories.
Click to hide internal directories.