x/website/_content/doc/tutorial: go vet flags tutorial code for non-constant format string #73845
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
website
Milestone
What is the URL of the page with the issue?
https://go.dev/doc/tutorial/add-a-test
What is your user agent?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0
Screenshot
What did you do?
Follow the steps in the tutorial.
What did you expect to see?
I expected to see the same command output for
go test
in the tutorial as on my local machine when executing the command.What did you see instead?
For step 5, the outputs don't match. It seems like go now does advanced code checking and already detects a static issue without running the actual test.
Tutorial Output
Local Output
using
go version go1.24.2 windows/amd64
The text was updated successfully, but these errors were encountered: