diagnostics

package
v0.0.0-...-0ee1f79 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Info    DiagnosticType = iota
	Warning                = 6
	Error                  = 7
)

Variables

This section is empty.

Functions

func Builder

func Builder() *builder

Types

type Diagnostic

type Diagnostic interface {
	GetType() DiagnosticType
	GetSummary() string
	GetDetails() string
	String() string
}

type DiagnosticType

type DiagnosticType int

type Diagnostics

type Diagnostics struct {
	// contains filtered or unexported fields
}

func NewDiagnostics

func NewDiagnostics() *Diagnostics

func (*Diagnostics) Append

func (d *Diagnostics) Append(diags ...Diagnostic)

func (*Diagnostics) Entries

func (d *Diagnostics) Entries() Diags

func (*Diagnostics) Errors

func (d *Diagnostics) Errors() Diags

func (*Diagnostics) HasErrors

func (d *Diagnostics) HasErrors() bool

func (*Diagnostics) HasWarnings

func (d *Diagnostics) HasWarnings() bool

func (*Diagnostics) Infos

func (d *Diagnostics) Infos() Diags

func (*Diagnostics) Stream

func (d *Diagnostics) Stream(diagsStream *streams.Stream[Diagnostic])

func (*Diagnostics) Warnings

func (d *Diagnostics) Warnings() Diags

type Diags

type Diags []Diagnostic

func (Diags) String

func (d Diags) String() string

Jump to

Keyboard shortcuts

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