panicinfo

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package panicinfo bounds retained diagnostics for observational callbacks.

Index

Constants

View Source
const (
	MaxMessageBytes = 4 << 10
	MaxStackBytes   = 64 << 10
)

Variables

This section is empty.

Functions

func Capture

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL