x/text/message: expected behaviour of message.Print is unclear #63173
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What did you do?
Executed the following https://go.dev/play/p/htbw6anb94b
What did you expect to see?
What did you see instead?
When using the
Printer.Print
function, I expect language substitutions to occur. If no language substitutions were wanted, I would usefmt.Print
instead. I would not normally usePrintf
unless I am using a format specifier.The
Printer.Print
documentation saysHowever it doesn't specify what types of language-specific formatting is actually applied. I'd expect string substitution to be one of these language-specific formatting.
Erroneous use of
Printer.Print
can also be seen on this blog post which usesPrinter.Println
instead of the workingPrinter.Printf
Is this a bug, or expected behaviour?
/cc @mpvl via https://dev.golang.org/owners
The text was updated successfully, but these errors were encountered: