Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorWriter ¶
type ErrorWriter interface {
WriteError(
rw http.ResponseWriter,
code int,
message string,
logger *slog.Logger,
)
}
func NewHTMLErrorWriterFromFile ¶
func NewHTMLErrorWriterFromFile(path string) (ErrorWriter, error)
func NewPlaintextErrorWriter ¶
func NewPlaintextErrorWriter() ErrorWriter
Click to show internal directories.
Click to hide internal directories.