Versions in this module Expand all Collapse all v0 v0.8.0 Oct 19, 2026 Changes in this version + const ModulePath + var ErrNotRequired = errors.New("go.mod does not require " + ModulePath) + type Declaration struct + Replace *Replacement + Replaces []Replacement + Required string + func Parse(path string, data []byte) (Declaration, error) + func Read(workDir string) (Declaration, error) + func (d Declaration) Release() string + type Replacement struct + ForVersion string + Path string + Version string + func Resolve(replaces []Replacement, version string) *Replacement + func (r Replacement) Local() bool + func (r Replacement) String() string