cache

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalCacheBaseDir = ".hof/mods"

Functions

func Checksum

func Checksum(lang, mod, ver string) (string, error)

func Fetch

func Fetch(lang, mod, ver, pev string) (err error)

func Load

func Load(lang, mod, ver string) (FS billy.Filesystem, err error)

func MatchPrefixPatterns

func MatchPrefixPatterns(globs, target string) bool

MatchPrefixPatterns reports whether any path prefix of target matches one of the glob patterns (as defined by path.Match) in the comma-separated globs list. This implements the algorithm used when matching a module path to the GOPRIVATE environment variable, as described by 'go help module-private'.

It ignores any empty or malformed patterns in the list.

func Outdir

func Outdir(lang, remote, owner, repo, tag string) string

func SetBaseDir

func SetBaseDir(basedir string)

func Write

func Write(lang, remote, owner, repo, tag string, FS billy.Filesystem) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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