Documentation
¶
Overview ¶
Package gomod parses go.mod files into a typed, line-annotated structure. It is the single go.mod parser shared by the scope, resolve, mcp, and extract packages, wrapping golang.org/x/mod/modfile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Module string
Go string // e.g. "1.22.3"
Toolchain string // e.g. "go1.26.4", or ""
Requires []Require
Replaces []Replace
Excludes []Exclude
Retracts []Retract
}
File is the parsed content of a go.mod.
type Replace ¶
Replace is a single replace directive entry. NewVersion is "" for a filesystem-path replacement (e.g. => ../fork).
Click to show internal directories.
Click to hide internal directories.