- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 111 for GoVersion (0.16 sec)
-
src/cmd/go/internal/modfetch/fetch.go
if data, err := os.ReadFile(filepath.Join(dir, "go.mod")); err == nil { goVersion := gover.GoModLookup(data, "go") if gover.Compare(goVersion, gover.Local()) > 0 { return "", &gover.TooNewError{What: mod.String(), GoVersion: goVersion} } } else if !errors.Is(err, fs.ErrNotExist) { return "", err } return dir, nil }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errors.go
err := check.newError(code) err.addf(at, format, args...) err.soft = true err.report() } func (check *Checker) versionErrorf(at poser, v goVersion, format string, args ...any) { msg := check.sprintf(format, args...) err := check.newError(UnsupportedFeature) err.addf(at, "%s requires %s or later", msg, v) err.report() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/go/scriptreadme_test.go
TESTGO_GOROOT=<GOROOT used to build cmd/go, for use in tests that may change GOROOT> HOME=/no-home PATH=<actual PATH> TMPDIR=$WORK/tmp GODEBUG=<actual GODEBUG> devnull=<value of os.DevNull> goversion=<current Go version; for example, 1.12> On Plan 9, the variables $path and $home are set instead of $PATH and $HOME. On Windows, the variables $USERPROFILE and $TMP are set instead of $HOME and $TMPDIR.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.9K bytes - Viewed (0) -
src/go/types/errors.go
err := check.newError(code) err.addf(at, format, args...) err.soft = true err.report() } func (check *Checker) versionErrorf(at positioner, v goVersion, format string, args ...any) { msg := check.sprintf(format, args...) err := check.newError(UnsupportedFeature) err.addf(at, "%s requires %s or later", msg, v) err.report() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
{Name: "GOTMPDIR", Value: cfg.Getenv("GOTMPDIR")}, {Name: "GOTOOLCHAIN"}, {Name: "GOTOOLDIR", Value: build.ToolDir}, {Name: "GOVCS", Value: cfg.GOVCS}, {Name: "GOVERSION", Value: runtime.Version()}, {Name: "GODEBUG", Value: os.Getenv("GODEBUG")}, {Name: "GOTELEMETRY", Value: telemetry.Mode()}, {Name: "GOTELEMETRYDIR", Value: telemetry.Dir()}, } for i := range env {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/go/internal/work/gc.go
if archive != "" { ofile = archive } else { out := "_go_.o" ofile = objdir + out } pkgpath := pkgPath(a) defaultGcFlags := []string{"-p", pkgpath} if p.Module != nil { v := p.Module.GoVersion if v == "" { v = gover.DefaultGoModVersion } if allowedVersion(v) { defaultGcFlags = append(defaultGcFlags, "-lang=go"+gover.Lang(v)) } } if p.Standard {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/dist/buildtool.go
"cmd/internal/cov/covcmd", "internal/bisect", "internal/buildcfg", "internal/goarch", "internal/godebugs", "internal/goexperiment", "internal/goroot", "internal/gover", "internal/goversion", // internal/lazyregexp is provided by Go 1.17, which permits it to // be imported by other packages in this list, but is not provided // by the Go 1.17 version of gccgo. It's on this list only to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 23:29:41 UTC 2024 - 11.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
// go: directive (but be conservative and test) if strings.HasPrefix(text, "go:") { if p.top && strings.HasPrefix(msg, "//go:build") { if x, err := constraint.Parse(msg); err == nil { p.goVersion = constraint.GoVersion(x) } } if pragh != nil { p.pragma = pragh(p.posAt(line, col+2), p.scanner.blank, text, p.pragma) // +2 to skip over // or /* } } }, directives, )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/go/script_test.go
"TESTGONETWORK=panic", // cleared by the [net] condition "GOSUMDB=" + testSumDBVerifierKey, "GONOPROXY=", "GONOSUMDB=", "GOVCS=*:all", "devnull=" + os.DevNull, "goversion=" + gover.Local(), "CMDGO_TEST_RUN_MAIN=true", "HGRCPATH=", "GOTOOLCHAIN=auto", "newline=\n", } if testenv.Builder() != "" || os.Getenv("GIT_TRACE_CURL") == "1" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 12.2K bytes - Viewed (0) -
src/go/types/stmt.go
// determine key/value types var key, val Type if x.mode != invalid { // Ranging over a type parameter is permitted if it has a core type. k, v, cause, isFunc, ok := rangeKeyVal(x.typ, func(v goVersion) bool { return check.allowVersion(x.expr, v) }) switch { case !ok && cause != "": check.softErrorf(&x, InvalidRangeExpr, "cannot range over %s: %s", &x, cause) case !ok:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0)