pgdesign v0.26.0 /internal/diagnostic
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 go
const Error   = pkgdiag.Error

#Warning

Go go
const Warning = pkgdiag.Warning

#Info

Go go
const Info    = pkgdiag.Info

#Hint

Go go
const Hint    = pkgdiag.Hint

#Severity

Go go
type Severity = pkgdiag.Severity

Type aliases re-export the public API so all existing internal/ imports continue to work without modification.

#Diagnostic

Go go
type Diagnostic = pkgdiag.Diagnostic

#Diagnostics

Go go
type Diagnostics = pkgdiag.Diagnostics

#RenderTerminal

Go go
func RenderTerminal(diags Diagnostics, color bool) string

RenderTerminal delegates to pkg/diagnostic.RenderTerminal.

#RenderJSON

Go go
func RenderJSON(diags Diagnostics) string

RenderJSON delegates to pkg/diagnostic.RenderJSON.

Search