Documentation ¶
Overview ¶
Package mod provides core features related to go.mod file handling for use by Go editors and tools.
Index ¶
- func CodeLens(ctx context.Context, snapshot source.Snapshot, uri span.URI) ([]protocol.CodeLens, error)
- func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.FileIdentity][]*source.Diagnostic, map[string]*modfile.Require, ...)
- func Format(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]protocol.TextEdit, error)
- func Hover(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, ...) (*protocol.Hover, error)
- func SuggestedFixes(ctx context.Context, snapshot source.Snapshot, realfh source.FileHandle, ...) []protocol.CodeAction
- func SuggestedGoFixes(ctx context.Context, snapshot source.Snapshot) (map[string]protocol.TextDocumentEdit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diagnostics ¶
func SuggestedFixes ¶
func SuggestedFixes(ctx context.Context, snapshot source.Snapshot, realfh source.FileHandle, diags []protocol.Diagnostic) []protocol.CodeAction
func SuggestedGoFixes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.