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 Diagnostics Uses

func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.VersionedFileIdentity][]*source.Diagnostic, error)

func ErrorsForMod Uses

func ErrorsForMod(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]*source.Error, 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 LensFuncs Uses

func LensFuncs() map[string]source.LensFunc

LensFuncs returns the supported lensFuncs for go.mod files.

Package mod imports 14 packages (graph) and is imported by 4 packages. Updated 2021-01-21. Refresh now. Tools for package owners.