| 1 |
// Copyright 2024 The Go Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
//go:build !cmd_go_bootstrap && windows |
| 6 |
|
| 7 |
package telemetrystats |
| 8 |
|
| 9 |
import ( |
| 10 |
"fmt" |
| 11 |
"internal/syscall/windows" |
| 12 |
|
| 13 |
"cmd/internal/telemetry/counter" |
| 14 |
) |
| 15 |
|
| 16 |
func incrementVersionCounters() { |
| 17 |
major, minor, build := windows.Version() |
| 18 |
counter.Inc(fmt.Sprintf("go/platform/host/windows/major-version:%d", major)) |
| 19 |
counter.Inc(fmt.Sprintf("go/platform/host/windows/version:%d-%d", major, minor)) |
| 20 |
counter.Inc(fmt.Sprintf("go/platform/host/windows/build:%d", build)) |
| 21 |
} |