commit | b12db6cc77ebc092ad8b2a7ef7914f4156274f94 | [log] [tgz] |
---|---|---|
author | Julie Qiu <julie@golang.org> | Tue Aug 31 10:42:13 2021 -0400 |
committer | Julie Qiu <julie@golang.org> | Wed Sep 01 15:44:07 2021 +0000 |
tree | 837626ae56aec79bbd864e4c3016b99d81848d6f | |
parent | 631d69b0a87812279500eafdd890e7d11bc80469 [diff] |
internal/frontend: factor out serve json logic Logic for serving a JSON page is factored out into the functions fetchJSONPage, shouldServeJSON, and serveJSONPage. This will be reused for search tests in a later CL. For golang/go#44142 Change-Id: I253933f2c7911e140660a0cc617491ed42438b45 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346412 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.