Standard library / runtime/debug

debug.CrashOptions

Options for configuring additional fatal crash output. Go 1.23.2 exposes no configurable fields. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type CrashOptions struct {}

Working Example

Example Snippetgo
package main
import (  "fmt"  "runtime/debug")
func main() { err := debug.SetCrashOutput(nil, debug.CrashOptions{}); fmt.Println(err == nil) }
Go Reference