mod

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractGoCommandError

func ExtractGoCommandError(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, loadErr error) (*source.Diagnostic, error)

ExtractGoCommandError tries to parse errors that come from the go command and shape them into go.mod diagnostics.

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

func LensFuncs() map[string]source.LensFunc

LensFuncs returns the supported lensFuncs for go.mod files.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL