Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type E ¶
type E struct { // StatusCode is the HTTP status code this error is best represented by. StatusCode int E error }
E is the error struct that can be used with errors.As and errors.Is. Consumers of E are typically aware they're serving HTTP and consequently have sufficient context to set a StatusCode.
Click to show internal directories.
Click to hide internal directories.