package stdlib

Import Path
	golang.org/x/pkgsite/internal/stdlib (on go.dev)

Dependency Relation
	imports 21 packages, and imported by 9 packages

Involved Source Files Package stdlib supports special handling of the Go standard library. Regardless of the how the standard library has been split into modules for development and testing, the discovery site treats it as a single module named "std".
Package-Level Functions (total 16, in which 8 are exported)
Contains reports whether the given import path could be part of the Go standard library, by reporting whether the first component lacks a '.'.
Directory returns the directory of the standard library relative to the repo root.
MajorVersionForVersion returns the Go major version for version. E.g. "v1.13.3" => "go1".
TagForVersion returns the Go standard library repository tag corresponding to semver. The Go tags differ from standard semantic versions in a few ways, such as beginning with "go" instead of "v".
VersionForTag returns the semantic version for the Go tag, or "" if tag doesn't correspond to a Go release or beta tag. In special cases, when the tag specified is either `latest` or `master` it will return the tag. Examples: "go1" => "v1.0.0" "go1.2" => "v1.2.0" "go1.13beta1" => "v1.13.0-beta.1" "go1.9rc2" => "v1.9.0-rc.2" "latest" => "latest" "master" => "master"
Versions returns all the versions of Go that are relevant to the discovery site. These are all release versions (tags of the forms "goN.N" and "goN.N.N", where N is a number) and beta or rc versions (tags of the forms "goN.NbetaN" and "goN.N.NbetaN", and similarly for "rc" replacing "beta").
Zip creates a module zip representing the entire Go standard library at the given version (which must have been resolved with ZipInfo) and returns a reader to it. It also returns the time of the commit for that version. The zip file is in module form, with each path prefixed by ModuleName + "@" + version. Normally, Zip returns the resolved version it was passed. If the resolved version is "master", Zip returns a semantic version for the branch. Zip reads the standard library at the Go repository tag corresponding to to the given semantic version. Zip ignores go.mod files in the standard library, treating it as if it were a single module named "std" at the given version.
ZipInfo returns the proxy .info information for the module std.
Package-Level Variables (total 5, in which 3 are exported)
TestCommitTime is the time used for all commits when UseTestData is true.
TestCommitTime is the time used for all commits when UseTestData is true.
UseTestData determines whether to really clone the Go repo, or use stripped-down versions of the repo from the testdata directory.
Package-Level Constants (total 4, all are exported)
EstimatedZipSize is the approximate size of Zip("v1.15.2").
const GoRepoURL = "https://go.googlesource.com/go"
const GoSourceRepoURL = "https://cs.opensource.google/go/go"
ModulePath is the name of the module for the standard library.