Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for printslice (0.42 sec)

  1. operator/pkg/util/reflect_test.go

    	for _, vv := range lv {
    		if reflect.DeepEqual(vv, v) {
    			return true
    		}
    	}
    	return false
    }
    
    func TestDeleteFromSlicePtr(t *testing.T) {
    	parentSlice := []int{42, 43, 44, 45}
    	var parentSliceI any = parentSlice
    	if err := DeleteFromSlicePtr(&parentSliceI, 1); err != nil {
    		t.Fatalf("got error: %s, want error: nil", err)
    	}
    	wantSlice := []int{42, 44, 45}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  2. src/sort/sort_impl_120.go

    // license that can be found in the LICENSE file.
    
    //go:build !go1.21
    
    package sort
    
    func intsImpl(x []int)         { Sort(IntSlice(x)) }
    func float64sImpl(x []float64) { Sort(Float64Slice(x)) }
    func stringsImpl(x []string)   { Sort(StringSlice(x)) }
    
    func intsAreSortedImpl(x []int) bool         { return IsSorted(IntSlice(x)) }
    func float64sAreSortedImpl(x []float64) bool { return IsSorted(Float64Slice(x)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 13:00:18 UTC 2023
    - 602 bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    namedResources:
      instances:
      - attributes:
        - bool: true
          int: 7
          intSlice:
            ints:
            - 1
          name: nameValue
          quantity: "0"
          string: stringValue
          stringSlice:
            strings:
            - stringsValue
          version: versionValue
        name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. src/sort/sort_test.go

    	}
    	Ints(data)
    	if !IntsAreSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    func TestReverseSortIntSlice(t *testing.T) {
    	data := ints
    	data1 := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	r := IntSlice(data1[0:])
    	Sort(Reverse(r))
    	for i := 0; i < len(data); i++ {
    		if a[i] != r[len(data)-1-i] {
    			t.Errorf("reverse sort didn't sort")
    		}
    		if i > len(data)/2 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. src/net/textproto/writer.go

    func NewWriter(w *bufio.Writer) *Writer {
    	return &Writer{W: w}
    }
    
    var crnl = []byte{'\r', '\n'}
    var dotcrnl = []byte{'.', '\r', '\n'}
    
    // PrintfLine writes the formatted output followed by \r\n.
    func (w *Writer) PrintfLine(format string, args ...any) error {
    	w.closeDot()
    	fmt.Fprintf(w.W, format, args...)
    	w.W.Write(crnl)
    	return w.W.Flush()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/sort/search_test.go

    	name   string
    	result int
    	i      int
    }{
    	{"SearchInts", SearchInts(data, 11), 8},
    	{"SearchFloat64s", SearchFloat64s(fdata, 2.1), 4},
    	{"SearchStrings", SearchStrings(sdata, ""), 0},
    	{"IntSlice.Search", IntSlice(data).Search(0), 2},
    	{"Float64Slice.Search", Float64Slice(fdata).Search(2.0), 3},
    	{"StringSlice.Search", StringSlice(sdata).Search("x"), 3},
    }
    
    func TestSearchWrappers(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  7. src/cmd/nm/nm.go

      -type
          print symbol type after name
    `
    
    func usage() {
    	fmt.Fprint(os.Stderr, helpText)
    	os.Exit(2)
    }
    
    var (
    	sortOrder = flag.String("sort", "name", "")
    	printSize = flag.Bool("size", false, "")
    	printType = flag.Bool("type", false, "")
    
    	filePrefix = false
    )
    
    func init() {
    	flag.Var(nflag(0), "n", "") // alias for -sort address
    }
    
    type nflag int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    namedResources:
      instances:
      - attributes:
        - bool: true
          int: 7
          intSlice:
            ints:
            - 1
          name: nameValue
          quantity: "0"
          string: stringValue
          stringSlice:
            strings:
            - stringsValue
          version: versionValue
        name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/sort/sort.go

    // Convenience types for common cases
    
    // IntSlice attaches the methods of Interface to []int, sorting in increasing order.
    type IntSlice []int
    
    func (x IntSlice) Len() int           { return len(x) }
    func (x IntSlice) Less(i, j int) bool { return x[i] < x[j] }
    func (x IntSlice) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    // Sort is a convenience method: x.Sort() calls Sort(x).
    func (x IntSlice) Sort() { Sort(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.json

          {
            "name": "nameValue",
            "attributes": [
              {
                "name": "nameValue",
                "quantity": "0",
                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top