Documentation
¶
Index ¶
- Constants
- func Builder() *builder
- type Diagnostic
- type DiagnosticType
- type Diagnostics
- func (d *Diagnostics) Append(diags ...Diagnostic)
- func (d *Diagnostics) Entries() Diags
- func (d *Diagnostics) Errors() Diags
- func (d *Diagnostics) HasErrors() bool
- func (d *Diagnostics) HasWarnings() bool
- func (d *Diagnostics) Infos() Diags
- func (d *Diagnostics) Stream(diagsStream *streams.Stream[Diagnostic])
- func (d *Diagnostics) Warnings() Diags
- type Diags
Constants ¶
View Source
const ( Info DiagnosticType = iota Warning = 6 Error = 7 )
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.