Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Report ¶
type Report struct {
Summary string
Code string
Headline string
Where string
Path string
Error string
Runtime string
Next string
Docs string
AppFrames []string
FrameworkFrames []string
PlatformFrames []string
}
func Build ¶
Build constructs a Report from the given Options, capturing and classifying a stack trace.
func (Report) FormattedPublic ¶
FormattedPublic returns a client-safe rendering of the report: only the app-authored fields (summary, code/headline, next step, docs link). It deliberately OMITS where/path/error/runtime and every stack frame — those come from debug.Stack() and embed absolute build paths (which leak the OS username and the server's filesystem layout) plus internal call structure. That detail belongs in the server log (Emit → stderr), never in an HTTP response body sent to an untrusted client.
Click to show internal directories.
Click to hide internal directories.