Versions in this module Expand all Collapse all v1 v1.0.0 Aug 27, 2026 Changes in this version + func Serve(ctx context.Context, input io.Reader, output io.Writer, backend Backend) error + type Analysis struct + Diagnostics []Diagnostic + File *source.File + State any + type Backend interface + Analyze func(context.Context, Document) (Analysis, error) + CodeActions func(context.Context, Document, Analysis, source.Range) ([]CodeAction, error) + Format func(context.Context, Document) ([]byte, error) + type CodeAction struct + DiagnosticCode string + DiagnosticDocumentationURI string + DiagnosticMessage string + DiagnosticRange source.Range + DiagnosticSeverity Severity + DiagnosticWithheldFixes []WithheldFix + Kind string + NewText []byte + Preferred bool + Title string + type Diagnostic struct + Code string + DocumentationURI string + Message string + Range source.Range + Related []Related + Severity Severity + WithheldFixes []WithheldFix + type Document struct + Path string + Text []byte + URI string + Version int + type Related struct + Message string + Range source.Range + type Severity int + const SeverityError + const SeverityWarning + type WithheldFix struct + Message string + Name string + Reason string + type WorkspaceAnalysis struct + Analysis Analysis + Document Document + Err error + type WorkspaceBackend interface + AnalyzeWorkspace func(context.Context, []Document) ([]WorkspaceAnalysis, error) + type WorkspaceFileBackend interface + WorkspaceFilesChanged func(context.Context, WorkspaceFileChanges) error + type WorkspaceFileChanges struct + InvalidateAll bool + Paths []string