internal/frontend: use GetPathInfo

Use GetPathInfo to determine how to serve a path.

Protect behind an experiment.

Change-Id: Ia78b0049e4d76216654216c66a6c0786f38bd8f5
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/731801
Reviewed-by: Julie Qiu <julieqiu@google.com>
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
4 files changed
tree: 42b25833cec70ee096f10ee003d2a7a903636bea
  1. cmd/
  2. content/
  3. doc/
  4. internal/
  5. migrations/
  6. scripts/
  7. third_party/
  8. .gitignore
  9. .prettierrc.yaml
  10. all.bash
  11. cloudbuild.yaml
  12. CONTRIBUTING.md
  13. go.mod
  14. go.sum
  15. LICENSE
  16. PATENTS
  17. README.md
README.md

Pkg.go.dev

Pkg.go.dev is a website for discovering and evaluting Go packages and modules.

Roadmap

Pkg.go.dev launched in November 2019, and is currently under active development by the Go team.

Our current goal is to work towards redirecting godoc.org traffic to pkg.go.dev, and ensure that we address users' needs in the process. Read more about our plans for pkg.go.dev in 2020.

We encourage everyone to begin using pkg.go.dev today for all of their needs and file feedback! You can redirect all of your requests from godoc.org to pkg.go.dev, by visiting godoc.org/?redirect=on. Details at Go issue #37099.

If you are having issues with pkg.go.dev, please first check the known issues before following the troubleshooting guide. If that does not give you the information you need, reach out to us.

Issues

You can chat with us on the #tools slack channel on the Gophers slack.

If you think you have an issue that needs fixing, or a feature suggestion, then please make sure you follow the steps to file an issue with the right information to allow us to address it.

Contributing

We would love your help!

Our canonical Git repository is located cat go.googlesource.com/discovery. There is a mirror of the repository at github.com/golang/discovery.

To contribute, please read our contributing guide.

License

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.