Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var ErrGoSumDirty = errors.New("updates to go.sum needed, disabled by -mod=readonly") + var GoSumFile string + var HelpGoproxy = &base.Command + var HelpModuleAuth = &base.Command + var HelpPrivate = &base.Command + var WorkspaceGoSumFiles []string + func CachePath(m module.Version, suffix string) (string, error) + func Download(ctx context.Context, mod module.Version) (dir string, err error) + func DownloadDir(m module.Version) (string, error) + func DownloadZip(ctx context.Context, mod module.Version) (zipfile string, err error) + func GoMod(path, rev string) ([]byte, error) + func GoModFile(path, version string) (string, error) + func GoModSum(path, version string) (string, error) + func HaveSum(mod module.Version) bool + func InfoFile(path, version string) (string, error) + func LegacyGoMod(modPath string) []byte + func RemoveAll(dir string) error + func Reset() + func SideLock() (unlock func(), err error) + func Sum(mod module.Version) string + func TrimGoSum(keep map[module.Version]bool) + func TryProxies(f func(proxy string) error) error + func WriteGoSum(keep map[module.Version]bool, readonly bool) error + type DownloadDirPartialError struct + Dir string + Err error + func (e *DownloadDirPartialError) Error() string + func (e *DownloadDirPartialError) Is(err error) bool + type Repo interface + GoMod func(version string) (data []byte, err error) + Latest func() (*RevInfo, error) + ModulePath func() string + Stat func(rev string) (*RevInfo, error) + Versions func(prefix string) ([]string, error) + Zip func(dst io.Writer, version string) error + func Lookup(proxy, path string) Repo + type RevInfo struct + Name string + Short string + Time time.Time + Version string