Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 98 for goVERSION (0.49 sec)

  1. src/cmd/go/testdata/script/work.txt

    go list ./b/main.go
    env GOWORK=off
    go build -n -o foo foo.go
    env GOWORK=
    go build -n -o foo foo.go
    
    -- go.work.dup --
    go 1.18
    
    use (
    	a
    	b
    	../src/a
    )
    -- go.work.want --
    go $goversion
    
    use (
    	./a
    	./b
    )
    -- go.work.d --
    go 1.18
    
    use (
    	a
    	b
    	d
    )
    -- a/go.mod --
    
    module example.com/a
    
    -- a/a.go --
    package a
    
    import "fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/go/types/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: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. misc/go_android_exec/main.go

    	if err != nil {
    		return err
    	}
    	cmd := exec.Command(goTool, "version")
    	cmd.Stderr = os.Stderr
    	out, err := cmd.Output()
    	if err != nil {
    		return fmt.Errorf("%v: %w", cmd, err)
    	}
    	goVersion := string(out)
    
    	// Also known by cmd/dist. The bootstrap command deletes the file.
    	statPath := filepath.Join(os.TempDir(), "go_android_exec-adb-sync-status")
    	stat, err := os.OpenFile(statPath, os.O_CREATE|os.O_RDWR, 0666)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  4. src/go/build/deps_test.go

    	  internal/coverage/rtcov,
    	  internal/coverage/uleb128,
    	  internal/coverage/calloc,
    	  internal/cpu,
    	  internal/goarch,
    	  internal/godebugs,
    	  internal/goexperiment,
    	  internal/goos,
    	  internal/goversion,
    	  internal/nettrace,
    	  internal/platform,
    	  internal/profilerecord,
    	  internal/trace/traceviewer/format,
    	  log/internal,
    	  math/bits,
    	  unicode,
    	  unicode/utf8,
    	  unicode/utf16;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. src/go/parser/parser_test.go

    	pkgs, err := ParseDir(fset, "./testdata/goversion", nil, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, p := range pkgs {
    		want := strings.ReplaceAll(p.Name, "_", ".")
    		if want == "none" {
    			want = ""
    		}
    		for _, f := range p.Files {
    			if f.GoVersion != want {
    				t.Errorf("%s: GoVersion = %q, want %q", fset.Position(f.Pos()), f.GoVersion, want)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. src/go/ast/example_test.go

    	//     54  .  .  .  "main": *(obj @ 11)
    	//     55  .  .  }
    	//     56  .  }
    	//     57  .  Unresolved: []*ast.Ident (len = 1) {
    	//     58  .  .  0: *(obj @ 29)
    	//     59  .  }
    	//     60  .  GoVersion: ""
    	//     61  }
    }
    
    func ExamplePreorder() {
    	src := `
    package p
    
    func f(x, y int) {
    	print(x + y)
    }
    `
    
    	fset := token.NewFileSet()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go

    	}
    	info, ok := debug.ReadBuildInfo()
    	if !ok {
    		return nil, fmt.Errorf("no build info")
    	}
    	year, month, day := time.Now().UTC().Date()
    	goVers := info.GoVersion
    	// E.g.,  goVers:"go1.22-20240109-RC01 cl/597041403 +dcbe772469 X:loopvar"
    	words := strings.Fields(goVers)
    	goVers = words[0]
    	progPkgPath := info.Path
    	if progPkgPath == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top