const (
ModulePath = "golang.org/x/telemetry/config"
)
func Download(version string, envOverlay []string) (*telemetry.UploadConfig, string, error)
Download fetches the requested telemetry UploadConfig using "go mod download". If envOverlay is provided, it is appended to the environment used for invoking the go command.
The second result is the canonical version of the requested configuration.
func Downloads() int64
Downloads reports, for testing purposes, the number of times Download has been called.