Imports #
"bytes"
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"sync/atomic"
"golang.org/x/telemetry/internal/telemetry"
"os/exec"
"syscall"
"golang.org/x/sys/windows"
"bytes"
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"sync/atomic"
"golang.org/x/telemetry/internal/telemetry"
"os/exec"
"syscall"
"golang.org/x/sys/windows"
const ModulePath = "golang.org/x/telemetry/config"
const configFileName = "config.json"
var downloads int64
needNoConsole is used on windows to set the windows.CREATE_NO_WINDOW creation flag.
var needNoConsole = *ast.FuncLit
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 Download(version string, envOverlay []string) (*telemetry.UploadConfig, string, error)
Downloads reports, for testing purposes, the number of times [Download] has been called.
func Downloads() int64
func init()
func needNoConsoleWindows(cmd *exec.Cmd)
Generated with Arrow