Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsToolchainProgram (0.67 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/proginfo.go

    package telemetry
    
    import (
    	"os"
    	"path/filepath"
    	"runtime/debug"
    	"strings"
    
    	"golang.org/x/mod/module"
    )
    
    // IsToolchainProgram reports whether a program with the given path is a Go
    // toolchain program.
    func IsToolchainProgram(progPath string) bool {
    	return strings.HasPrefix(progPath, "cmd/")
    }
    
    // ProgramInfo extracts the go version, program package path, and program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:09:33 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top