Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for GOEXPERIMENT (0.44 sec)

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

    # Test GOEXPERIMENT variable
    
    # go env shows default empty GOEXPERIMENT
    go env
    stdout GOEXPERIMENT=
    
    # go env shows valid experiments
    env GOEXPERIMENT=fieldtrack,staticlockranking
    go env GOEXPERIMENT
    stdout '.*fieldtrack.*staticlockranking.*'
    go env
    stdout 'GOEXPERIMENT=.*fieldtrack.*staticlockranking.*'
    
    # go env rejects unknown experiments
    env GOEXPERIMENT=bad
    ! go env GOEXPERIMENT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 28 20:51:30 UTC 2021
    - 421 bytes
    - Viewed (0)
  2. src/internal/buildcfg/exp.go

    package buildcfg
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    
    	"internal/goexperiment"
    )
    
    // ExperimentFlags represents a set of GOEXPERIMENT flags relative to a baseline
    // (platform-default) experiment configuration.
    type ExperimentFlags struct {
    	goexperiment.Flags
    	baseline goexperiment.Flags
    }
    
    // Experiment contains the toolchain experiments enabled for the
    // current build.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/internal/goexperiment/flags.go

    // Package goexperiment implements support for toolchain experiments.
    //
    // Toolchain experiments are controlled by the GOEXPERIMENT
    // environment variable. GOEXPERIMENT is a comma-separated list of
    // experiment names. GOEXPERIMENT can be set at make.bash time, which
    // sets the default experiments for binaries built with the tool
    // chain; or it can be set at build time. GOEXPERIMENT can also be set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 16:19:47 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/build_tag_goexperiment.txt

    [short] skip
    # Reset all experiments so fieldtrack is definitely off.
    env GOEXPERIMENT=none
    go run m
    stderr 'fieldtrack off'
    # Turn fieldtrack on.
    env GOEXPERIMENT=none,fieldtrack
    go run m
    stderr 'fieldtrack on'
    
    -- ft_off.go --
    // +build !goexperiment.fieldtrack
    
    package main
    
    func main() {
    	println("fieldtrack off")
    }
    
    -- ft_on.go --
    // +build goexperiment.fieldtrack
    
    package main
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 19 02:43:30 UTC 2021
    - 460 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/env_unset.txt

    # Test that we can unset variables, even if initially invalid,
    # as long as resulting config is valid.
    
    env GOENV=badenv
    env GOOS=
    env GOARCH=
    env GOEXPERIMENT=
    
    ! go env
    stderr '^go(\.exe)?: unknown GOEXPERIMENT badexp$'
    
    go env -u GOEXPERIMENT
    
    ! go env
    stderr '^go: unsupported GOOS/GOARCH pair bados/badarch$'
    
    ! go env -u GOOS
    stderr '^go: unsupported GOOS/GOARCH pair \w+/badarch$'
    
    ! go env -u GOARCH
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 15 00:06:54 UTC 2021
    - 553 bytes
    - Viewed (0)
  6. src/crypto/boring/notboring_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (goexperiment.boringcrypto && !boringcrypto) || (!goexperiment.boringcrypto && boringcrypto)
    
    package boring_test
    
    import "testing"
    
    func TestNotBoring(t *testing.T) {
    	t.Error("goexperiment.boringcrypto and boringcrypto should be equivalent build tags")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 428 bytes
    - Viewed (0)
  7. src/internal/goexperiment/exp_arenas_off.go

    // Code generated by mkconsts.go. DO NOT EDIT.
    
    //go:build !goexperiment.arenas
    
    package goexperiment
    
    const Arenas = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 144 bytes
    - Viewed (0)
  8. src/internal/goexperiment/exp_boringcrypto_on.go

    // Code generated by mkconsts.go. DO NOT EDIT.
    
    //go:build goexperiment.boringcrypto
    
    package goexperiment
    
    const BoringCrypto = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 160 bytes
    - Viewed (0)
  9. src/internal/goexperiment/exp_cacheprog_on.go

    // Code generated by mkconsts.go. DO NOT EDIT.
    
    //go:build goexperiment.cacheprog
    
    package goexperiment
    
    const CacheProg = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 151 bytes
    - Viewed (0)
  10. src/internal/goexperiment/exp_coverageredesign_off.go

    // Code generated by mkconsts.go. DO NOT EDIT.
    
    //go:build !goexperiment.coverageredesign
    
    package goexperiment
    
    const CoverageRedesign = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 174 bytes
    - Viewed (0)
Back to top