1
0
mirror of https://github.com/golang/go synced 2024-11-14 17:40:28 -07:00
go/src/cmd/gofmt
Michael Matloob d79c350916 cmd/internal: separate counter package from telemetry package
Move the code that opens and increments counters out of the
cmd/internal/telemetry package into cmd/internal/telemetry/counter. The
telemetry package has dependencies on the upload code, which we do not
want to pull into the rest of the go toolchain.

For #68109

Change-Id: I463c106819b169177a783de4a7d93377e81f4e3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/593976
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2024-06-21 19:58:04 +00:00
..
testdata
doc.go
gofmt_test.go
gofmt_unix_test.go cmd/gofmt: fix a data race in TestPermissions 2023-05-18 12:52:14 +00:00
gofmt.go cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
internal.go
long_test.go io/fs, path/filepath, cmd/gofmt: replace statDirEntry with fs.FileInfoToDirEntry 2023-09-12 20:27:28 +00:00
rewrite.go all: use built-in clear to clear maps 2023-07-27 22:07:13 +00:00
simplify.go