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 ¶
- func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.VersionedFileIdentity][]*source.Diagnostic, error)
- func DiagnosticsForMod(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]*source.Diagnostic, error)
- 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, position protocol.Position) (*protocol.Hover, error)
- func LensFuncs() map[command.Command]source.LensFunc
Functions ¶
func Diagnostics ¶
func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.VersionedFileIdentity][]*source.Diagnostic, error)
func DiagnosticsForMod ¶
func DiagnosticsForMod(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]*source.Diagnostic, error)
func Format ¶
func Format(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle) ([]protocol.TextEdit, error)
func Hover ¶
func Hover(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, position protocol.Position) (*protocol.Hover, error)
func LensFuncs ¶
LensFuncs returns the supported lensFuncs for go.mod files.
Source Files ¶
code_lens.go diagnostics.go format.go hover.go
- Version
- v0.1.10
- Published
- Mar 15, 2022
- Platform
- js/wasm
- Imports
- 14 packages
- Last checked
- 6 hours ago –
Tools for package owners.