Versions in this module Expand all Collapse all v0 v0.1.0 Jun 9, 2024 Changes in this version + var ErrDuplicateModule = errors.New("this module conflicts with another one that declares the same path") + var ErrDuplicateProvides = errors.New("the provided module path has already been declared") + var ErrIgnoredModule = errors.New("the user requested to ignore this module path") + var ErrSeenModule = errors.New("this module was already scanned") + var ErrUnknownOutputFormat = errors.New("unknown output format") + func BuildRequires(sources []string, ver *version.Version, includeMods []string, ...) (descriptor.Requires, write.Files, string, error) + func Descriptor(info modfiles.ModFiles, ver *version.Version, addUnknownModules bool, ...) error + func Module(root string, ver *version.Version, addUnknownModules bool, ...) error + func PathRequires(sources []string, includeMods []string, ignoreMods []string, output string, ...) (descriptor.Requires, write.Files, string, error) + func Requires(sources []string, includeMods []string, ignoreMods []string, output string, ...) (descriptor.Requires, write.Files, string, error) + func TryModule(path string) (result modfiles.ModFiles, err error) + type Results struct + Modules map[string]*modfiles.ModFiles + func Discover(sources []string, includeMods []string, ignoreMods []string, onlyRoot bool, ...) (*Results, write.Files, string, error) + func Provides(sources []string, ver *version.Version, includeMods, ignoreMods []string, ...) (*Results, write.Files, string, error) + func Scan(sources []string, ver *version.Version, includeMods []string, ...) (*Results, error) + func (modules *Results) BuildRequires() (descriptor.Requires, error) + func (modules *Results) CSV(onlyRoot bool) string + func (modules *Results) Format(format string, onlyRoot bool) (string, error) + func (modules *Results) JSON() (string, error) + func (modules *Results) List(separator string, onlyRoot bool) string + func (modules *Results) Provides() (descriptor.Provides, error) + func (modules *Results) Requires() (descriptor.Requires, error) + func (modules *Results) Text(onlyRoot bool) string