Skip to content

Commit 51e8b5d

Browse files
committed
telemetry: add Dir function for use by go telemetry
Add a function to get the telemetry directory. It will be used by go clean -telemetry and go env GOTELEMETRYDIR. Change-Id: I0e2e523929f3e164ea0b6ae584f772c1b1f15c08 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/584304 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 1489fc4 commit 51e8b5d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dir.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
package telemetry
6+
7+
import "golang.org/x/telemetry/internal/telemetry"
8+
9+
// Dir returns the telemetry directory.
10+
func Dir() string {
11+
return telemetry.Default.Dir()
12+
}

0 commit comments

Comments
 (0)