- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 63 for goVERSION (0.3 sec)
-
src/cmd/compile/internal/types2/version.go
package types2 import ( "fmt" "go/version" "internal/goversion" ) // A goVersion is a Go language version string of the form "go1.%d" // where d is the minor version number. goVersion strings don't // contain release numbers ("go1.20.1" is not a valid goVersion). type goVersion string // asGoVersion returns v as a goVersion (e.g., "go1.20.1" becomes "go1.20").
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_goline_old.txt
env TESTGO_VERSION=go1.24 go list -f '{{.Module.GoVersion}}' stdout 1.15 go mod tidy go list -f '{{.Module.GoVersion}}' stdout 1.15 go get example.com/a@v1.0.1 go list -f '{{.Module.GoVersion}}' stdout 1.15 go get example.com/a@v1.0.1 go@1.16 go list -f '{{.Module.GoVersion}}' stdout 1.16 -- go.mod -- module m go 1.15 require ( example.com/a v1.0.0 example.com/b v1.0.0 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 17:51:28 UTC 2023 - 1011 bytes - Viewed (0) -
src/cmd/go/internal/fix/fix.go
goVersion := "" if pkg.Module != nil { goVersion = "go" + pkg.Module.GoVersion } else if pkg.Standard { goVersion = build.Default.ReleaseTags[len(build.Default.ReleaseTags)-1] } var fixArg []string if *fixes != "" { fixArg = []string{"-r=" + *fixes} } base.Run(str.StringList(cfg.BuildToolexec, base.Tool("fix"), "-go="+goVersion, fixArg, files)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:52:29 UTC 2022 - 2.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall_go121.go
// license that can be found in the LICENSE file. //go:build go1.21 package cgocall import "go/types" func setGoVersion(tc *types.Config, pkg *types.Package) { tc.GoVersion = pkg.GoVersion()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 307 bytes - Viewed (0) -
src/go/build/constraint/vers.go
import ( "strconv" "strings" ) // GoVersion returns the minimum Go version implied by a given build expression. // If the expression can be satisfied without any Go version tags, GoVersion returns an empty string. // // For example: // // GoVersion(linux && go1.22) = "go1.22" // GoVersion((linux && go1.22) || (windows && go1.20)) = "go1.20" => go1.20 // GoVersion(linux) = "" // GoVersion(linux || (windows && go1.22)) = ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 14:19:00 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_goline.txt
env TESTGO_VERSION=go1.99 ! go list -f '{{.Module.GoVersion}}' stderr 'go: updates to go.mod needed' stderr 'go mod tidy' go mod tidy cat go.mod go list -f '{{.Module.GoVersion}}' stdout 1.22 # Adding a@v1.0.01 should upgrade to Go 1.23rc1. cp go.mod go.mod1 go get example.com/a@v1.0.1 stderr '^go: upgraded go 1.22 => 1.23rc1\ngo: upgraded example.com/a v1.0.0 => v1.0.1\ngo: upgraded example.com/b v1.0.0 => v1.0.1$'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_edit.txt
go mod edit -dropgodebug key cmpenv go.mod go.mod.start -- x.go -- package x -- w/w.go -- package w -- $WORK/go.mod.init -- module x.x/y/z go $goversion -- $WORK/go.mod.edit1 -- module x.x/y/z go $goversion require x.1 v1.0.0 exclude ( x.1 v1.2.0 x.1 v1.2.1 x.1 v2.0.0+incompatible ) replace ( x.1 v1.3.0 => y.1 v1.4.0 x.1 v1.4.0 => ../z )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 6.6K bytes - Viewed (0) -
api/openapi-spec/v3/version_openapi.json
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:49:56 UTC 2022 - 2.2K bytes - Viewed (0) -
src/go/types/package.go
func (pkg *Package) SetName(name string) { pkg.name = name } // GoVersion returns the minimum Go version required by this package. // If the minimum version is unknown, GoVersion returns the empty string. // Individual source files may specify a different minimum Go version, // as reported in the [go/ast.File.GoVersion] field. func (pkg *Package) GoVersion() string { return pkg.goVersion } // Scope returns the (complete or incomplete) package scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/go/internal/gover/local.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gover import ( "internal/goversion" "runtime" "strconv" ) // TestVersion is initialized in the go command test binary // to be $TESTGO_VERSION, to allow tests to override the // go command's idea of its own version as returned by Local. var TestVersion string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 15:20:23 UTC 2023 - 1.1K bytes - Viewed (0)