Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleResponse ¶
func SimpleResponse(w http.ResponseWriter, status int, title string) error
SimpleResponse writes a simple response with the RFC7807 struct to the provided writer.
Types ¶
type RFC7807 ¶
type RFC7807 struct { Type string `json:"type,omitempty"` Title string `json:"title"` Status int `json:"status,omitempty"` Detail string `json:"detail,omitempty"` Instance string `json:"instance,omitempty"` Extensions map[string]any `json:"extensions,omitempty"` }
RFC7807 is a struct that represents the RFC7807 standard.
func (*RFC7807) SetExtensions ¶
SetExtensions sets the extensions field of the RFC7807 struct.
func (*RFC7807) SetInstance ¶
SetInstance sets the instance field of the RFC7807 struct.
Click to show internal directories.
Click to hide internal directories.