report

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Pos     token.Pos
	Message string
}

Finding represents a single potential panic detected by the tool.

type Reporter

type Reporter struct {
	Fset     *token.FileSet
	Findings []Finding
}

Reporter collects and prints findings.

func NewReporter

func NewReporter() *Reporter

NewReporter creates a new Reporter.

func (*Reporter) Add

func (r *Reporter) Add(pos token.Pos, message string)

Add appends a new finding to the report.

func (*Reporter) Print

func (r *Reporter) Print()

Print outputs all collected findings to standard output.

Jump to

Keyboard shortcuts

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