Help us shape the future of Go! Take the 2026 Go Developer Survey

crash

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package crash lists and reads macOS crash reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, path string) (string, error)

Read reads the content of a crash report

Types

type ListOptions

type ListOptions struct {
	Query string    // Filter by process name/filename substring
	After time.Time // Filter modified after this time
	Limit int       // Max results
}

ListOptions filters the crash reports

type Report

type Report struct {
	Name    string    `json:"name"`
	Path    string    `json:"path"`
	Size    int64     `json:"size"`
	ModTime time.Time `json:"mod_time"`
	Process string    `json:"process,omitempty"` // Derived from filename
}

Report represents a crash report file

func List

func List(ctx context.Context, opts ListOptions) ([]Report, error)

List returns a list of crash reports from ~/Library/Logs/DiagnosticReports

Jump to

Keyboard shortcuts

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