modcache

package
v0.13.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoNeedToDownload = errors.New("no need to download")
)
View Source
var (
	GOMODCACHE = getGOMODCACHE()
)

Functions

func DownloadCachePath

func DownloadCachePath(mod module.Version) (string, error)

DownloadCachePath returns download cache path of a versioned module.

func InPath

func InPath(path string) bool

InPath returns if a path is in GOMODCACHE or not.

func Path

func Path(mod module.Version) (string, error)

Path returns cache dir of a versioned module.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL