package modcache
import "cuelang.org/go/internal/mod/modcache"
Index ¶
- func New(registry *modregistry.Client, dir string) (modload.Registry, error)
- func RemoveAll(dir string) error
Functions ¶
func New ¶
New returns r wrapped inside a caching layer that stores persistent cached content inside the given OS directory.
The `modpkgload.SourceLoc.FS` fields in the locations returned by the registry implement the `OSRootFS` interface, allowing a caller to find the native OS filepath where modules are stored.
func RemoveAll ¶
RemoveAll removes a directory written by Fetch, first applying any permission changes needed to do so.
Source Files ¶
cache.go fetch.go
- Version
- v0.8.0-alpha.2
- Published
- Feb 20, 2024
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 16 minutes ago –
Tools for package owners.