Documentation
¶
Overview ¶
Package mod exposes select functionality related to module mechanics. Its code is mostly copied from cmd/go/internal/... packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashZip ¶
HashZip is like dirhash.HashZip, but the .zip file it takes can be in memory rather than on disk.
func ParseV000PseudoVersion ¶
ParseV000PseudoVersion returns the time stamp and the revision identifier of the v0.0.0 pseudo-version v. It returns an error if v is not a valid v0.0.0 pseudo-version of the form "v0.0.0-yyyymmddhhmmss-abcdef123456".
func PseudoVersion ¶
PseudoVersion returns a pseudo-version for the given major version ("v1") preexisting older tagged version ("" or "v1.2.3" or "v1.2.3-pre"), revision time, and revision identifier (usually a 12-byte commit hash prefix).