Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for GoVersion (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/go/internal/toolchain/switch.go

    			s.addTooNew(e)
    		}
    
    	case interface{ Unwrap() error }:
    		s.addTooNew(err.Unwrap())
    
    	case *gover.TooNewError:
    		if s.TooNew == nil ||
    			gover.Compare(err.GoVersion, s.TooNew.GoVersion) > 0 ||
    			gover.Compare(err.GoVersion, s.TooNew.GoVersion) == 0 && err.What < s.TooNew.What {
    			s.TooNew = err
    		}
    	}
    }
    
    // NeedSwitch reports whether Switch would attempt to switch toolchains.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top