Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 487 for Slice3 (0.13 sec)

  1. test/escape2.go

    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    	slice2 := make([]func() int, 1) // ERROR "make\(.*\) does not escape"
    	copy(slice2, slice1)
    	return slice2[0]
    }
    
    func issue12397(x, y int) { // ERROR "moved to heap: y$"
    	// x does not escape below, because all relevant code is dead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. src/slices/sort_benchmark_test.go

    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    				slices.SortFunc(structs, func(a, b *myStruct) int { return cmpFunc(b, a) })
    				slices.SortFunc(structs, cmpFunc)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. tools/golangci-override.yaml

              - pkg: maps
                desc: "do not use maps; use istio.io/istio/pkg/maps instead"
              - pkg: golang.org/x/exp/slices
                desc: "do not use golang.org/x/exp/slices; use istio.io/istio/pkg/slices instead"
              - pkg: slices
                desc: "do not use slices; use istio.io/istio/pkg/slices instead"
          DenyOperatorAndIstioctl:
            files:
              # Tests can do anything
              - "!$test"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    		"fmt.Errorf":           true,
    		"fmt.Sprint":           true,
    		"fmt.Sprintf":          true,
    		"slices.Clip":          true,
    		"slices.Compact":       true,
    		"slices.CompactFunc":   true,
    		"slices.Delete":        true,
    		"slices.DeleteFunc":    true,
    		"slices.Grow":          true,
    		"slices.Insert":        true,
    		"slices.Replace":       true,
    		"sort.Reverse":         true,
    	}
    	Analyzer.Flags.Var(&funcs, "funcs",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Signature).String", Method, 5},
    		{"(*Signature).TypeParams", Method, 18},
    		{"(*Signature).Underlying", Method, 5},
    		{"(*Signature).Variadic", Method, 5},
    		{"(*Slice).Elem", Method, 5},
    		{"(*Slice).String", Method, 5},
    		{"(*Slice).Underlying", Method, 5},
    		{"(*StdSizes).Alignof", Method, 5},
    		{"(*StdSizes).Offsetsof", Method, 5},
    		{"(*StdSizes).Sizeof", Method, 5},
    		{"(*Struct).Field", Method, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. src/go/doc/testdata/issue22856.1.golden

    FILENAMES
    	testdata/issue22856.go
    
    FUNCTIONS
    	// NewPointerSliceOfSlice is not a factory function because slices ...
    	func NewPointerSliceOfSlice() [][]*T
    
    	// NewSlice3 is not a factory function because 3 nested slices of ...
    	func NewSlice3() [][][]T
    
    	// NewSliceOfSlice is not a factory function because slices of a ...
    	func NewSliceOfSlice() [][]T
    
    
    TYPES
    	// 
    	type T struct{}
    
    	// 
    	func New() T
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 16:37:37 UTC 2018
    - 654 bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/policies.go

    func (c *ConfigWriter) PrintPolicySummary(filter PolicyFilter) error {
    	w := c.tabwriter()
    	zDump := c.ztunnelDump
    
    	pols := slices.Filter(zDump.Policies, filter.Verify)
    	slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. pkg/kube/krt/singleton_test.go

    	c.RunAndWait(stop)
    	cmt := clienttest.NewWriter[*corev1.ConfigMap](t, c)
    	ConfigMapNames := krt.NewSingleton[string](
    		func(ctx krt.HandlerContext) *string {
    			cms := krt.Fetch(ctx, ConfigMaps)
    			return ptr.Of(slices.Join(",", slices.Map(cms, func(c *corev1.ConfigMap) string {
    				return config.NamespacedName(c).String()
    			})...))
    		},
    	)
    	ConfigMapNames.AsCollection().Synced().WaitUntilSynced(stop)
    	tt := assert.NewTracker[string](t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. pkg/controller/endpointslicemirroring/metrics/cache_test.go

    	spCacheEfficient.Set(pmKey80, EfficiencyInfo{Endpoints: 45, Slices: 1})
    	spCacheEfficient.Set(pmKey80443, EfficiencyInfo{Endpoints: 35, Slices: 1})
    
    	spCacheInefficient := NewEndpointPortCache()
    	spCacheInefficient.Set(pmKey80, EfficiencyInfo{Endpoints: 12, Slices: 5})
    	spCacheInefficient.Set(pmKey80443, EfficiencyInfo{Endpoints: 18, Slices: 8})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/resources/org/gradle/reporting/report.js

        // Attach controls for column groups in tables
        var controls = $("div#controls");
        var groups = [];
        var slices = [];
        $("tr.control-groups").closest("table").find("tr").each(function() {
            var row = $(this);
            if (row.hasClass('control-groups')) {
                var currentCol = 0;
                slices = [];
                row.find("th").each(function(){
                    var e = $(this);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top