Documentation
¶
Overview ¶
Package diag holds the non-fatal report type shared by the code that loads LOCALLY AUTHORED content: the MCP client's configuration and the TOML subset underneath it.
It is separate from the error types those packages return because the distinction is load-bearing: authored content is decoded leniently, so almost everything that goes wrong is something the embedder may want to log rather than something that stops the load. Only SeverityError means a thing was not loaded.
Index ¶
Constants ¶
const BOMPrefix = "\ufeff"
BOMPrefix is the UTF-8 byte order mark, written as an escape because a literal one in Go source is a compile error.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
// Path is the file the diagnostic concerns, empty when it is about a byte
// stream the caller supplied directly.
Path string
Line int
Severity Severity
Message string
}
Diagnostic is a non-fatal report from parsing or discovery.
func (Diagnostic) String ¶
func (d Diagnostic) String() string