diag

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.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 Diagnostic

type Diagnostic struct {
	Code     string
	Message  string
	Position Position
	// contains filtered or unexported fields
}

func (Diagnostic) Error

func (d Diagnostic) Error() string

func (Diagnostic) Stack

func (d Diagnostic) Stack() string

type DiagnosticCode

type DiagnosticCode struct {
	Code    string
	Message string
}

func (DiagnosticCode) Is

func (d DiagnosticCode) Is(err error) bool

func (DiagnosticCode) New

func (d DiagnosticCode) New(pos Position, args ...any) Diagnostic

type Position

type Position struct {
	Line   int
	Column int
}

func (Position) String

func (p Position) String() string

Jump to

Keyboard shortcuts

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