Documentation ¶
Index ¶
Constants ¶
View Source
const (
ExtraKeyMessage = "message"
)
Variables ¶
This section is empty.
Functions ¶
func ExtrasFromError ¶
ExtrasFromError extract extras from previous created [HaltError]
func StatusCodeFromError ¶
StatusCodeFromError get status code from previous created [HaltError]
Types ¶
type Option ¶
type Option func(h *haltError)
Option configuration function for [HaltError]
func WithBadRequest ¶
func WithBadRequest() Option
WithBadRequest alias to WithStatusCode with http.StatusBadRequest
func WithExtras ¶
WithExtras a Option setting extras with key-values
func WithStatusCode ¶
WithStatusCode a Option setting status code
Click to show internal directories.
Click to hide internal directories.