Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for goVERSION (0.23 sec)

  1. 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)
  2. 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)
  3. operator/pkg/version/version.go

    func IsVersionString(path string) bool {
    	_, err := goversion.NewSemver(path)
    	if err != nil {
    		return false
    	}
    	vs := Version{}
    	return yaml.Unmarshal([]byte(path), &vs) == nil
    }
    
    // TagToVersionString converts an istio container tag into a version string
    func TagToVersionString(path string) (string, error) {
    	path = strings.TrimPrefix(path, releasePrefix)
    	ver, err := goversion.NewSemver(path)
    	if err != nil {
    		return "", err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modcmd/tidy.go

    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    
    	goVersion := tidyGo.String()
    	if goVersion != "" && gover.Compare(gover.Local(), goVersion) < 0 {
    		toolchain.SwitchOrFatal(ctx, &gover.TooNewError{
    			What:      "-go flag",
    			GoVersion: goVersion,
    		})
    	}
    
    	modload.LoadPackages(ctx, modload.PackageOpts{
    		TidyGoVersion:            tidyGo.String(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/config/config.go

    	}
    	return NewConfig(&cfg), nil
    }
    
    func NewConfig(cfg *telemetry.UploadConfig) *Config {
    	ucfg := Config{UploadConfig: cfg}
    	ucfg.goos = set(ucfg.GOOS)
    	ucfg.goarch = set(ucfg.GOARCH)
    	ucfg.goversion = set(ucfg.GoVersion)
    	ucfg.program = make(map[string]bool, len(ucfg.Programs))
    	ucfg.pgversion = make(map[pgkey]bool, len(ucfg.Programs))
    	ucfg.pgcounter = make(map[pgkey]bool, len(ucfg.Programs))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/types.go

    package telemetry
    
    // Common types and directories used by multiple packages.
    
    // An UploadConfig controls what data is uploaded.
    type UploadConfig struct {
    	GOOS       []string
    	GOARCH     []string
    	GoVersion  []string
    	SampleRate float64
    	Programs   []*ProgramConfig
    }
    
    type ProgramConfig struct {
    	// the counter names may have to be
    	// repeated for each program. (e.g., if the counters are in a package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/vendor.go

    					if entry == "explicit" {
    						meta.Explicit = true
    					}
    					if goVersion, ok := strings.CutPrefix(entry, "go "); ok {
    						meta.GoVersion = goVersion
    						rawGoVersion.Store(mod, meta.GoVersion)
    						if gover.Compare(goVersion, gover.Local()) > 0 {
    							base.Fatal(&gover.TooNewError{What: mod.Path + " in " + base.ShortPath(vendorFile), GoVersion: goVersion})
    						}
    					}
    					// All other tokens are reserved for future use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 18:09:22 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/gover/toolchain.go

    	"context"
    	"errors"
    	"fmt"
    	"strings"
    )
    
    // FromToolchain returns the Go version for the named toolchain,
    // derived from the name itself (not by running the toolchain).
    // A toolchain is named "goVERSION".
    // A suffix after the VERSION introduced by a -, space, or tab is removed.
    // Examples:
    //
    //	FromToolchain("go1.2.3") == "1.2.3"
    //	FromToolchain("go1.2.3-bigcorp") == "1.2.3"
    //	FromToolchain("invalid") == ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. src/runtime/debug/mod.go

    	// awkwardness from the user.
    	bi.GoVersion = runtime.Version()
    
    	return bi, true
    }
    
    // BuildInfo represents the build information read from a Go binary.
    type BuildInfo struct {
    	// GoVersion is the version of the Go toolchain that built the binary
    	// (for example, "go1.19.2").
    	GoVersion string
    
    	// Path is the package path of the main package for the binary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:51 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. src/cmd/fix/main.go

    }
    
    func main() {
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("fix/invocations")
    	telemetry.CountFlags("fix/flag:", *flag.CommandLine)
    
    	if !version.IsValid(*goVersion) {
    		report(fmt.Errorf("invalid -go=%s", *goVersion))
    		os.Exit(exitCode)
    	}
    
    	sort.Sort(byDate(fixes))
    
    	if *allowedRewrites != "" {
    		allowed = make(map[string]bool)
    		for _, f := range strings.Split(*allowedRewrites, ",") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top