Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,718 for append1 (0.22 sec)

  1. test/escape_reflect.go

    func append1(s []int, x int) []int { // ERROR "leaking param: s$"
    	sv := reflect.ValueOf(s)     // ERROR "s escapes to heap"
    	xv := reflect.ValueOf(x)     // ERROR "x escapes to heap"
    	rv := reflect.Append(sv, xv) // ERROR "... argument does not escape"
    	return rv.Interface().([]int)
    }
    
    // Unfortunate: s doesn't need escape, only leak to result.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/builtins0.go

    	_ = append(s, "foo"...)
    	_ = append(S(s), "foo" /* ERRORx `cannot use .* in argument to append` */ )
    	_ = append(S(s), "foo"...)
    	_ = append(s, t /* ERROR "cannot use t" */ )
    	_ = append(s, t...)
    	_ = append(s, T("foo")...)
    	_ = append(S(s), t /* ERROR "cannot use t" */ )
    	_ = append(S(s), t...)
    	_ = append(S(s), T("foo")...)
    	_ = append([]string{}, t /* ERROR "cannot use t" */ , "foo")
    	_ = append([]T{}, t, "foo")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

    	defer qs.lock.Unlock()
    	d := debug.QueueSetDump{
    		Queues:                     make([]debug.QueueDump, len(qs.queues)),
    		QueuelessExecutingRequests: SetMapReduce(dumpRequest(includeRequestDetails), append1[debug.RequestDump])(qs.requestsExecutingSet),
    		Waiting:                    qs.totRequestsWaiting,
    		Executing:                  qs.totRequestsExecuting,
    		SeatsInUse:                 qs.totSeatsInUse,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 16:59:21 UTC 2024
    - 42.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/appends/appends.go

    	"golang.org/x/tools/go/types/typeutil"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "appends",
    	Doc:      analysisutil.MustExtractDoc(doc, "appends"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/appends",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/vet/testdata/appends/appends.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the appends checker.
    
    package appends
    
    func AppendsTest() {
    	sli := []string{"a", "b", "c"}
    	sli = append(sli) // ERROR "append with no values"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 20:55:20 UTC 2023
    - 338 bytes
    - Viewed (0)
  6. tools/istio-iptables/pkg/builder/testdata/append-single.golden

    Leonardo Sarra <******@****.***> 1718116194 +0200
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 49 bytes
    - Viewed (0)
  7. src/strconv/itoa.go

    }
    
    // AppendInt appends the string form of the integer i,
    // as generated by [FormatInt], to dst and returns the extended buffer.
    func AppendInt(dst []byte, i int64, base int) []byte {
    	if fastSmalls && 0 <= i && i < nSmalls && base == 10 {
    		return append(dst, small(int(i))...)
    	}
    	dst, _ = formatBits(dst, uint64(i), base, i < 0, true)
    	return dst
    }
    
    // AppendUint appends the string form of the unsigned integer i,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/appends/doc.go

    // license that can be found in the LICENSE file.
    
    // Package appends defines an Analyzer that detects
    // if there is only one variable in append.
    //
    // # Analyzer appends
    //
    // appends: check for missing values after append
    //
    // This checker reports calls to append that pass
    // no values to be appended to the slice.
    //
    //	s := []string{"a", "b", "c"}
    //	_ = append(s)
    //
    // Such calls are always no-ops and often indicate an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 20:55:20 UTC 2023
    - 577 bytes
    - Viewed (0)
  9. tools/istio-iptables/pkg/builder/testdata/append-multi.golden

    Leonardo Sarra <******@****.***> 1718116194 +0200
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 112 bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/builder/testdata/append-single-restore.golden

    Leonardo Sarra <******@****.***> 1718116194 +0200
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 46 bytes
    - Viewed (0)
Back to top