tools: Index | Files

package mod

import ""

Package mod provides core features related to go.mod file handling for use by Go editors and tools.


Package Files

code_lens.go diagnostics.go format.go hover.go

func CodeLens Uses

func CodeLens(ctx context.Context, snapshot source.Snapshot, uri span.URI) ([]protocol.CodeLens, error)

CodeLens computes code lens for a go.mod file.

func Diagnostics Uses

func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.FileIdentity][]*source.Diagnostic, map[string]*modfile.Require, error)

func Format Uses

func Format(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]protocol.TextEdit, error)

func Hover Uses

func Hover(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, position protocol.Position) (*protocol.Hover, error)

func SuggestedFixes Uses

func SuggestedFixes(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, diags []protocol.Diagnostic) ([]protocol.CodeAction, error)

func SuggestedGoFixes Uses

func SuggestedGoFixes(ctx context.Context, snapshot source.Snapshot) (map[string]protocol.TextDocumentEdit, error)

Package mod imports 11 packages (graph) and is imported by 2 packages. Updated 2020-07-02. Refresh now. Tools for package owners.