Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for stringSlice (0.28 sec)

  1. pkg/api/v1/service/util_test.go

    	if len(cidrs) != 1 {
    		t.Errorf("Expected exactly one CIDR: %v", cidrs.StringSlice())
    	}
    	cidrs = checkOK("192.168.0.1/32,192.168.0.1/32")
    	if len(cidrs) != 1 {
    		t.Errorf("Expected exactly one CIDR (after de-dup): %v", cidrs.StringSlice())
    	}
    	cidrs = checkOK("192.168.0.1/32,192.168.0.2/32")
    	if len(cidrs) != 2 {
    		t.Errorf("Expected two CIDRs: %v", cidrs.StringSlice())
    	}
    	cidrs = checkOK("  192.168.0.1/32 , 192.168.0.2/32   ")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. pkg/api/service/util_test.go

    	if len(cidrs) != 1 {
    		t.Errorf("Expected exactly one CIDR: %v", cidrs.StringSlice())
    	}
    	cidrs = checkOK("192.168.0.1/32,192.168.0.1/32")
    	if len(cidrs) != 1 {
    		t.Errorf("Expected exactly one CIDR (after de-dup): %v", cidrs.StringSlice())
    	}
    	cidrs = checkOK("192.168.0.1/32,192.168.0.2/32")
    	if len(cidrs) != 2 {
    		t.Errorf("Expected two CIDRs: %v", cidrs.StringSlice())
    	}
    	cidrs = checkOK("  192.168.0.1/32 , 192.168.0.2/32   ")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/sort/sort_impl_120.go

    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)
  4. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.yaml

    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)
  5. src/sort/search_test.go

    	{"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) {
    	for _, e := range wrappertests {
    		if e.result != e.i {
    			t.Errorf("%s: expected index %d; got %d", e.name, e.i, e.result)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/resource/v1alpha2/namedresources.go

    	StringValue *string `json:"string,omitempty" protobuf:"bytes,5,opt,name=string"`
    	// StringSliceValue is an array of strings.
    	StringSliceValue *NamedResourcesStringSlice `json:"stringSlice,omitempty" protobuf:"bytes,9,rep,name=stringSlice"`
    	// VersionValue is a semantic version according to semver.org spec 2.0.0.
    	VersionValue *string `json:"version,omitempty" protobuf:"bytes,10,opt,name=version"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.yaml

    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)
  8. src/crypto/tls/bogo_shim_test.go

    	_          = flag.Bool("use-custom-verify-callback", false, "")
    )
    
    type stringSlice []string
    
    func flagStringSlice(name, usage string) *stringSlice {
    	f := &stringSlice{}
    	flag.Var(f, name, usage)
    	return f
    }
    
    func (saf stringSlice) String() string {
    	return strings.Join(saf, ",")
    }
    
    func (saf stringSlice) Set(s string) error {
    	saf = append(saf, s)
    	return nil
    }
    
    func bogoShim() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.json

                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
                  ]
                },
                "version": "versionValue"
              }
            ]
          }
        ]
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/sort/sort.go

    func (x Float64Slice) Sort() { Sort(x) }
    
    // StringSlice attaches the methods of Interface to []string, sorting in increasing order.
    type StringSlice []string
    
    func (x StringSlice) Len() int           { return len(x) }
    func (x StringSlice) Less(i, j int) bool { return x[i] < x[j] }
    func (x StringSlice) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top