]> Cypherpunks repositories - gostls13.git/commit
cmd/go: change Printer.Output -> Printer.Printf for consistency
authorAustin Clements <austin@google.com>
Thu, 14 Nov 2024 00:50:44 +0000 (19:50 -0500)
committerAustin Clements <austin@google.com>
Sun, 17 Nov 2024 14:32:08 +0000 (14:32 +0000)
commit44d4b6994246094fa2385fafc182b679ef216f3a
treecf73e462dd52f2feb80b0a9609b8baca1fa100e4
parentf9a95b1bdcff42730c836a792b27740b9c0df645
cmd/go: change Printer.Output -> Printer.Printf for consistency

Currently, the Printer interface has `Output`, which acts like Print
and `Errorf`, which acts like Printf. It's confusing that the
formatting style is tied to whether it's regular output or an error.

Fix this by replacing Output with Printf, so both use Printf-style
formatting.

Change-Id: I4c76f941e956f2599c5620b455bf41e21636b44e
Reviewed-on: https://go-review.googlesource.com/c/go/+/627795
Reviewed-by: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/load/printer.go
src/cmd/go/internal/work/action.go
src/cmd/go/internal/work/buildid.go
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/shell.go