commit | 0a30e374544fc794cc1769dd04254f5be9b62c68 | [log] [tgz] |
---|---|---|
author | Soroush Javadi <soroush.javadi@gmail.com> | Wed Feb 22 21:35:51 2023 +0000 |
committer | Jamal Carvalho <jamal@golang.org> | Wed Mar 01 13:51:50 2023 +0000 |
tree | 5cd2743a3c8758a6939f6db55e4330fcc67541c4 | |
parent | 474fcadb0a31131853442447d42a30ccd6e65a7b [diff] |
static: append all event messages to playground output A response from the playground server contains a list of events. Each event contains a message. The final playground output should be the concatenation of all event messages. The existing playground implementation sets the output text to each event message, so the final output would be only the last event message. Fix this by appending event messages to the output text. The existing tests do not test the playground with a mock response containing multiple events. Change a mock response to contain two events. All changes are automatic except for playground.ts and playground.test.ts. Fixes golang/go#58476 Change-Id: Ib9779e0a85619b7b7a7f87ffe0142d091818a815 GitHub-Last-Rev: d98f9e6395ec29a37e61a81b7b523a7ac62b3452 GitHub-Pull-Request: golang/pkgsite#57 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/467575 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Run-TryBot: 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.
Pkgsite requires Go 1.19 to run. The last commit that works with Go 1.18 is 9ffe8b928e4fbd3ff7dcf984254629a47f8b6e63. The last commit that works with Go 1.17 is 4d836c6a652cde92f433967680dfd6171a91ec12.
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 pkg.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.