tools: golang.org/x/tools/internal/lsp/mod Index | Files

package mod

import "golang.org/x/tools/internal/lsp/mod"

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

Index

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)

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, realfh source.FileHandle, diags []protocol.Diagnostic) []protocol.CodeAction

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-04-06. Refresh now. Tools for package owners.