Versions in this module Expand all Collapse all v0 v0.1.0 Feb 23, 2026 Changes in this version + var Registry = map[ErrorCode]ErrorInfo + func Format(d Diagnostic) string + func FormatAll(ds DiagnosticSet) string + type Diagnostic struct + Code ErrorCode + Column int + File string + Hint string + Line int + Message string + SourceLine string + UnderlineLen int + UnderlineStart int + func (d Diagnostic) Error() string + type DiagnosticBuilder struct + func NewDiagnostic(code ErrorCode, msg string) *DiagnosticBuilder + func (b *DiagnosticBuilder) Build() Diagnostic + func (b *DiagnosticBuilder) Column(col int) *DiagnosticBuilder + func (b *DiagnosticBuilder) File(file string) *DiagnosticBuilder + func (b *DiagnosticBuilder) Hint(hint string) *DiagnosticBuilder + func (b *DiagnosticBuilder) Line(line int) *DiagnosticBuilder + func (b *DiagnosticBuilder) SourceLine(line string) *DiagnosticBuilder + func (b *DiagnosticBuilder) Underline(start, length int) *DiagnosticBuilder + type DiagnosticSet struct + Diagnostics []Diagnostic + func (ds DiagnosticSet) Count() int + func (ds DiagnosticSet) Error() string + func (ds DiagnosticSet) HasErrors() bool + type ErrorCode string + const ErrDuplicateField + const ErrDynamicValue + const ErrInvalidEnumDefault + const ErrInvalidFieldName + const ErrInvalidModifierValue + const ErrMissingArgument + const ErrMissingPrimaryKey + const ErrUnsupportedType + type ErrorInfo struct + Code ErrorCode + HelpURL string + Title string + func Lookup(code ErrorCode) ErrorInfo