Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { StatusCode safehttp.StatusCode Message safehtml.HTML }
Error is a safe error response (as recognized by the secure.dispatcher).
This showcases implementing custom safe responses. See https://pkg.go.dev/github.com/google/safehtml/template#hdr-Threat_model.
Click to show internal directories.
Click to hide internal directories.