Skip to main content

Module go

Module go 

Source
Expand description

Go private modules: GOPROXY, GOPRIVATE, GONOPROXY, GONOSUMDB (from the environment or the go env file) and ~/.netrc. A module a private proxy serves is read from that proxy; a private module without one is read straight from its git host at the version’s tag, like go does.

Functions§

download
Download from a private proxy or straight from the git host. Ok(false) when absent.
is_private_module
Is this module private by the user’s Go settings (process environment)?
matches_patterns
Go’s pattern rule: each comma-separated glob matches a prefix of the module path made of as many elements as the glob has.
plan
split_module
(repository path, module subdirectory) of a module path on a git host.