golang.org/x/pkgsite/internal/frontend.urlPathInfo.requestedVersion (field)
23 uses
golang.org/x/pkgsite/internal/frontend (current package)
details.go#L69: if !isSupportedVersion(urlInfo.fullPath, urlInfo.requestedVersion) {
details.go#L70: return invalidVersionError(urlInfo.fullPath, urlInfo.requestedVersion)
fetch.go#L108: if !isSupportedVersion(urlInfo.fullPath, urlInfo.requestedVersion) ||
fetch.go#L111: (stdlib.Contains(urlInfo.fullPath) && urlInfo.requestedVersion == internal.LatestVersion) {
fetch.go#L114: status, responseText := s.fetchAndPoll(r.Context(), ds, urlInfo.modulePath, urlInfo.fullPath, urlInfo.requestedVersion)
server.go#L208: if info.requestedVersion == internal.LatestVersion {
unit.go#L109: um, err := ds.GetUnitMeta(ctx, info.fullPath, info.modulePath, info.requestedVersion)
unit.go#L114: return s.servePathNotFoundPage(w, r, ds, info.fullPath, info.modulePath, info.requestedVersion)
unit.go#L138: recordVersionTypeMetric(ctx, info.requestedVersion)
unit.go#L139: if _, ok := internal.DefaultBranches[info.requestedVersion]; ok {
unit.go#L150: log.Infof(ctx, "serveUnitPage: Scheduling %q@%q to be fetched", um.ModulePath, info.requestedVersion)
unit.go#L151: if _, err := s.queue.ScheduleFetch(ctx, um.ModulePath, info.requestedVersion, "", false); err != nil {
unit.go#L153: r.URL.Path, um.ModulePath, info.requestedVersion, err)
unit.go#L168: if info.modulePath == internal.UnknownModulePath && info.requestedVersion == internal.LatestVersion {
unit.go#L186: Breadcrumb: displayBreadcrumb(um, info.requestedVersion),
unit.go#L189: URLPath: constructUnitURL(um.Path, um.ModulePath, info.requestedVersion),
urlinfo.go#L33: requestedVersion string
urlinfo.go#L98: requestedVersion: internal.LatestVersion,
urlinfo.go#L110: err: fmt.Errorf("invalid version: %q", info.requestedVersion),
urlinfo.go#L114: info.requestedVersion = endParts[0]
urlinfo.go#L153: info.requestedVersion = internal.LatestVersion
urlinfo.go#L157: info.requestedVersion = stdlib.VersionForTag(tag)
urlinfo.go#L158: if info.requestedVersion == "" {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |