package
Version:
v0.28.0
Opens a new window with list of versions in this module.
Published: Sep 17, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package panicinfo bounds retained diagnostics for observational callbacks.
View Source
const (
MaxMessageBytes = 4 << 10
MaxStackBytes = 64 << 10
)
func Capture(value any) (message, stack string)
Capture must run in the recovering goroutine. Cloning a truncated message
prevents the diagnostic from retaining the full panic value's allocation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.