Documentation
¶
Overview ¶
Package errors provides an optional renderer for render failures.
Index ¶
Constants ¶
View Source
const RenderKindError partial.RenderKind = "error"
RenderKindError is the renderer kind used for error fragments.
Variables ¶
This section is empty.
Functions ¶
func ExtractTemplateLocation ¶
ExtractTemplateLocation extracts a template file and line from an error message.
func Stage ¶
func Stage(options ...Option) partial.RenderStage
Stage returns a render stage that handles error render contexts.
Types ¶
type Data ¶
type Data struct {
Error error
Message string
PartialID string
Templates []string
Request *http.Request
URL *url.URL
Location string
Detailed bool
TemplateLabel string
}
Data is the template data used by the error renderer.
Click to show internal directories.
Click to hide internal directories.