Versions in this module Expand all Collapse all v0 v0.7.1 Oct 27, 2026 v0.7.0 Oct 27, 2026 Changes in this version + func InferBinaryName(pkg string) string + func ModulePath(dir string) string + type File struct + Go string + Module string + Requires []Require + Tools []string + func (m *File) BinaryNameFor(toolName string) string + func (m *File) DropTools(pkgs ...string) error + func (m *File) Format() ([]byte, error) + func (m *File) ModuleFor(pkg string) (Require, bool) + func (m *File) Scan() []Spec + func (m *File) SetModule(modPath string) error + func (m *File) StripTools() error + func (m *File) VersionFor(pkg string) string + type Parser interface + Parse func(src []byte) (*File, error) + Read func(name string) (*File, error) + Validate func(f *File) error + type Require struct + Path string + Version string + type Spec struct + Name string + Package string + Version string + func (s Spec) String() string + type XParser struct + func (XParser) Parse(src []byte) (*File, error) + func (XParser) Validate(f *File) error + func (x XParser) Read(name string) (*File, error)