Documentation ¶
Index ¶
- Variables
- func Checksum(lang, mod, ver string) (string, error)
- func Fetch(lang, mod, ver, pev string) (err error)
- func Load(lang, mod, ver string) (FS billy.Filesystem, err error)
- func MatchPrefixPatterns(globs, target string) bool
- func Outdir(lang, remote, owner, repo, tag string) string
- func SetBaseDir(basedir string)
- func Write(lang, remote, owner, repo, tag string, FS billy.Filesystem) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalCacheBaseDir = ".hof/mods"
Functions ¶
func MatchPrefixPatterns ¶
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 SetBaseDir ¶
func SetBaseDir(basedir string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.