- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 98 for GOVERSION (0.19 sec)
-
src/cmd/compile/internal/types/goversion.go
// Copyright 2009 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 types import ( "fmt" "internal/goversion" "internal/lazyregexp" "log" "strconv" "cmd/compile/internal/base" ) // A lang is a language version broken into major and minor numbers. type lang struct { major, minor int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 21:36:02 UTC 2024 - 2.4K bytes - Viewed (0) -
src/internal/goversion/goversion.go
// Copyright 2019 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 goversion // Version is the Go 1.x version which is currently // in development and will eventually get released. // // It should be updated at the start of each development cycle to be // the version of the next Go 1.x release. See golang.org/issue/40705.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 19 19:23:40 UTC 2024 - 445 bytes - Viewed (0) -
src/go/types/version.go
package types import ( "fmt" "go/ast" "go/token" "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: Thu Mar 14 23:12:40 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/versions/types.go
package versions import ( "go/types" ) // GoVersion returns the Go version of the type package. // It returns zero if no version can be determined. func GoVersion(pkg *types.Package) string { // TODO(taking): x/tools can call GoVersion() [from 1.21] after 1.25. if pkg, ok := any(pkg).(interface{ GoVersion() string }); ok { return pkg.GoVersion() } return ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 531 bytes - Viewed (0) -
src/cmd/go/testdata/script/godebug_default.txt
cp go.mod.21 go.mod go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' ! stdout panicnil stdout randautoseed=0 # Go 1.21 work module should NOT set panicnil=1 in Go 1.20 dependency. cp go.mod.21 go.mod go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' q ! stdout panicnil=1 ! stdout randautoseed go mod download rsc.io/panicnil # for go.sum go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' rsc.io/panicnil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/go/internal/load/godebug.go
if p.Name != "main" { return "" } goVersion := modload.MainModules.GoVersion() if modload.RootMode == modload.NoRoot && p.Module != nil { // This is go install pkg@version or go run pkg@version. // Use the Go version from the package. // If there isn't one, then assume Go 1.20, // the last version before GODEBUGs were introduced. goVersion = p.Module.GoVersion if goVersion == "" { goVersion = "1.20" } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/versions/types_go122.go
// 1) types.Info.FileVersion, which follows the cascade: // 1.a) file version (ast.File.GoVersion), // 1.b) the package version (types.Config.GoVersion), or // 2) is some unknown Future version. // // File versions require a valid package version to be provided to types // in Config.GoVersion. Config.GoVersion is either from the package's module // or the toolchain (go run). This value should be provided by go/packages
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 1.3K bytes - Viewed (0) -
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/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)