crash

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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