Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 115 for goVERSION (0.15 sec)

  1. src/go/types/stdlib_test.go

    						break
    					}
    					const prefix = "-lang="
    					if strings.HasPrefix(arg, prefix) {
    						goVersion = arg[len(prefix):]
    					}
    				}
    			}
    		}
    
    		// parse and type-check file
    		file, err := parser.ParseFile(fset, filename, nil, 0)
    		if err == nil {
    			conf := Config{
    				GoVersion: goVersion,
    				Importer:  stdLibImporter,
    			}
    			_, err = conf.Check(filename, fset, []*ast.File{file}, nil)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    					vars = append(vars, obj)
    				}
    			}
    		}
    		var body *ast.BlockStmt
    		switch n := n.(type) {
    		case *ast.File:
    			// Only traverse the file if its goversion is strictly before go1.22.
    			goversion := versions.FileVersion(pass.TypesInfo, n)
    			return versions.Before(goversion, versions.Go1_22)
    		case *ast.RangeStmt:
    			body = n.Body
    			addVar(n.Key)
    			addVar(n.Value)
    		case *ast.ForStmt:
    			body = n.Body
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/stdlib_test.go

    					const prefix = "-lang="
    					if strings.HasPrefix(arg, prefix) {
    						goVersion = arg[len(prefix):]
    					}
    				}
    			}
    		}
    
    		// parse and type-check file
    		if testing.Verbose() {
    			fmt.Println("\t", filename)
    		}
    		file, err := syntax.ParseFile(filename, nil, nil, 0)
    		if err == nil {
    			conf := Config{
    				GoVersion: goVersion,
    				Importer:  stdLibImporter,
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/env_write.txt

    ! stderr .+
    
    # go env -w rejects unknown or bad variables
    ! go env -w GOGC=off
    stderr 'unknown go command variable GOGC'
    ! go env -w GOEXE=.bat
    stderr 'GOEXE cannot be modified'
    ! go env -w GOVERSION=customversion
    stderr 'GOVERSION cannot be modified'
    ! go env -w GOENV=/env
    stderr 'GOENV can only be set using the OS environment'
    ! go env -w GODEBUG=gctrace=1
    stderr 'GODEBUG can only be set using the OS environment'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:42:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modinfo/info.go

    	Dir        string           `json:",omitempty"` // directory holding local copy of files, if any
    	GoMod      string           `json:",omitempty"` // path to go.mod file describing module, if any
    	GoVersion  string           `json:",omitempty"` // go version used in module
    	Retracted  []string         `json:",omitempty"` // retraction information, if any (with -retracted or -u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/debug/gosym/symtab.go

    	// they do not belong to any package.
    	//
    	// See cmd/compile/internal/base/link.go:ReservedImports variable.
    	if s.goVersion >= ver120 && (strings.HasPrefix(name, "go:") || strings.HasPrefix(name, "type:")) {
    		return ""
    	}
    
    	// For go1.18 and below, the prefix are "type." and "go." instead.
    	if s.goVersion <= ver118 && (strings.HasPrefix(name, "go.") || strings.HasPrefix(name, "type.")) {
    		return ""
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/api_test.go

    	goversion := fmt.Sprintf("go1.%d", goversion.Version)
    	for _, v := range []string{
    		goversion,
    		goversion + ".0",
    		goversion + ".1",
    		goversion + ".rc",
    	} {
    		conf := Config{GoVersion: v}
    		pkg := mustTypecheck("package p", &conf, nil)
    		if pkg.GoVersion() != conf.GoVersion {
    			t.Errorf("got %s; want %s", pkg.GoVersion(), conf.GoVersion)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    		}
    		files = append(files, f)
    	}
    	tc := &types.Config{
    		Importer:  makeTypesImporter(cfg, fset),
    		Sizes:     types.SizesFor("gc", build.Default.GOARCH), // TODO(adonovan): use cfg.Compiler
    		GoVersion: cfg.GoVersion,
    	}
    	info := &types.Info{
    		Types:      make(map[ast.Expr]types.TypeAndValue),
    		Defs:       make(map[*ast.Ident]types.Object),
    		Uses:       make(map[*ast.Ident]types.Object),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/00-bug.yml

            GOPROXY="https://proxy.golang.org,direct"
            GOROOT="/usr/local/go"
            GOSUMDB="sum.golang.org"
            GOTMPDIR=""
            GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
            GOVCS=""
            GOVERSION="go1.20.7"
            GCCGO="gccgo"
            AR="ar"
            CC="clang"
            CXX="clang++"
            CGO_ENABLED="1"
            GOMOD="/dev/null"
            GOWORK=""
            CGO_CFLAGS="-O2 -g"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_graph_version.txt

    
    # Unsupported go versions should be rejected, since we don't know
    # what versions they would report.
    ! go mod graph -go=1.99999999999
    stderr '^invalid value "1\.99999999999" for flag -go: maximum supported Go version is '$goversion'\nusage: go mod graph \[-go=version\] \[-x\]\nRun ''go help mod graph'' for details.$'
    
    
    -- go.mod --
    // Module m indirectly imports a package from
    // example.com/retract/incompatible. Its selected version of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 21:10:42 UTC 2022
    - 3.3K bytes
    - Viewed (0)
Back to top