Documentation ¶
Overview ¶
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 ExtractGoCommandError(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, ...) (*protocol.Hover, error)
- func LensFuncs() map[string]source.LensFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diagnostics ¶
func Diagnostics(ctx context.Context, snapshot source.Snapshot) (map[source.VersionedFileIdentity][]*source.Diagnostic, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.