gocuelang.org/go/internal/mod/modcache Index | Files

package modcache

import "cuelang.org/go/internal/mod/modcache"

Index

Functions

func New

func New(registry *modregistry.Client, dir string) (modload.Registry, error)

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

func RemoveAll(dir string) error

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.