godev/internal/content: expect one less newline for Go 1.23

The /index.html and /index test cases happen to be testing the exact
whitespace produced by net/http's redirect body text, which lost one
of its two newlines in CL 562356. Maybe these tests shouldn't report
whitespace differences at all, but they do and such differences will
be fairly rare.

Update the test case for Go 1.23 onwards, with a small adjustment to
keep it working for older supported versions too.

Change-Id: Ia304cdb9f399f7dcb969066bf9c1ec6424b002ca
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/563357
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
3 files changed
tree: b3ca13ddef9beb3481d0852fe3461f89cd8814a2
  1. cmd/
  2. config/
  3. counter/
  4. crashmonitor/
  5. godev/
  6. internal/
  7. upload/
  8. .dockerignore
  9. .eslintrc.json
  10. .gitignore
  11. .prettierrc.json
  12. .stylelintrc.json
  13. CONTRIBUTING.md
  14. doc.go
  15. go.mod
  16. go.sum
  17. LICENSE
  18. mode.go
  19. npm
  20. npx
  21. package-lock.json
  22. package.json
  23. PATENTS
  24. README.md
  25. tsconfig.json
  26. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

Linting & Formatting

This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.

See the style guides:

It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.

Installing npm Dependencies:

  1. Install docker
  2. Run ./npm install

Run ESLint, Stylelint, & Prettier

./npm run all

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.