Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 124 for goVERSION (0.16 sec)

  1. src/cmd/go/internal/modload/buildlist.go

    func LoadModGraph(ctx context.Context, goVersion string) (*ModuleGraph, error) {
    	rs, err := loadModFile(ctx, nil)
    	if err != nil {
    		return nil, err
    	}
    
    	if goVersion != "" {
    		v, _ := rs.rootSelected("go")
    		if gover.Compare(v, gover.GoStrictVersion) >= 0 && gover.Compare(goVersion, v) < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. api/go1.21.txt

    pkg go/ast, func NewPackage //deprecated #52463
    pkg go/ast, type File struct, GoVersion string #59033
    pkg go/ast, type Importer //deprecated #52463
    pkg go/ast, type Object //deprecated #52463
    pkg go/ast, type Package //deprecated #52463
    pkg go/ast, type Scope //deprecated #52463
    pkg go/build/constraint, func GoVersion(Expr) string #59033
    pkg go/build, type Directive struct #56986
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/syntax/nodes.go

    // Files
    
    // package PkgName; DeclList[0], DeclList[1], ...
    type File struct {
    	Pragma    Pragma
    	PkgName   *Name
    	DeclList  []Decl
    	EOF       Pos
    	GoVersion string
    	node
    }
    
    // ----------------------------------------------------------------------------
    // Declarations
    
    type (
    	Decl interface {
    		Node
    		aDecl()
    	}
    
    	//              Path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. 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)
  9. src/debug/gosym/pclntab_test.go

    func TestSymVersion(t *testing.T) {
    	skipIfNotELF(t)
    
    	table := getTable(t)
    	if table.go12line == nil {
    		t.Skip("not relevant to Go 1.2+ symbol table")
    	}
    	for _, fn := range table.Funcs {
    		if fn.goVersion == verUnknown {
    			t.Fatalf("unexpected symbol version: %v", fn)
    		}
    	}
    }
    
    // read115Executable returns a hello world executable compiled by Go 1.15.
    //
    // The file was compiled in /tmp/hello.go:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 17:17:44 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  10. 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)
Back to top