Updated
On this page
Package diagnostic re-exports shared diagnostic types from pkg/diagnostic and defines PG-specific diagnostic codes used by all pgdesign compiler passes.
#internal/diagnostic
#internal/diagnostic
Package diagnostic re-exports shared diagnostic types from pkg/diagnostic for use by internal pgdesign packages. PG-specific diagnostic codes are documented in codes.go.
#Error
go
const Error = pkgdiag.Error#Warning
go
const Warning = pkgdiag.Warning#Info
go
const Info = pkgdiag.Info#Hint
go
const Hint = pkgdiag.Hint#Severity
go
type Severity = pkgdiag.SeverityType aliases re-export the public API so all existing internal/ imports continue to work without modification.
#Diagnostic
go
type Diagnostic = pkgdiag.Diagnostic#Diagnostics
go
type Diagnostics = pkgdiag.Diagnostics#RenderTerminal
go
func RenderTerminal(diags Diagnostics, color bool) stringRenderTerminal delegates to pkg/diagnostic.RenderTerminal.
#RenderJSON
go
func RenderJSON(diags Diagnostics) stringRenderJSON delegates to pkg/diagnostic.RenderJSON.