Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for stringSlice (0.42 sec)

  1. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

      optional NamedResourcesIntSlice intSlice = 8;
    
      // StringValue is a string.
      optional string string = 5;
    
      // StringSliceValue is an array of strings.
      optional NamedResourcesStringSlice stringSlice = 9;
    
      // VersionValue is a semantic version according to semver.org spec 2.0.0.
      optional string version = 10;
    }
    
    // NamedResourcesFilter is used in ResourceFilterModel.
    message NamedResourcesFilter {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. src/sort/search.go

    func (p Float64Slice) Search(x float64) int { return SearchFloat64s(p, x) }
    
    // Search returns the result of applying [SearchStrings] to the receiver and x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. src/sort/sort_test.go

    		t.Errorf("mismatch between Sort and slices.Sort: got %v, want %v", slice1, slice2)
    	}
    }
    
    func TestSortStringSlice(t *testing.T) {
    	data := strings
    	a := StringSlice(data[0:])
    	Sort(a)
    	if !IsSorted(a) {
    		t.Errorf("sorted %v", strings)
    		t.Errorf("   got %v", data)
    	}
    }
    
    func TestInts(t *testing.T) {
    	data := ints
    	Ints(data[0:])
    	if !IntsAreSorted(data[0:]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. pkg/credentialprovider/keyring.go

    	// first. For example, if for the given image "gcr.io/etcd-development/etcd",
    	// credentials for "quay.io/coreos" should match before "quay.io".
    	sort.Sort(sort.Reverse(sort.StringSlice(dk.index)))
    }
    
    const (
    	defaultRegistryHost = "index.docker.io"
    	defaultRegistryKey  = defaultRegistryHost + "/v1/"
    )
    
    // isDefaultRegistryMatch determines whether the given image will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  5. pilot/test/xdstest/extract.go

    					resourceNames.Insert(s.GetName())
    				}
    			}
    		}
    	}
    	resourceNames.Delete("")
    	ls := resourceNames.UnsortedList()
    	sort.Sort(sort.Reverse(sort.StringSlice(ls)))
    	return ls
    }
    
    func ExtractListenerNames(ll []*listener.Listener) []string {
    	res := []string{}
    	for _, l := range ll {
    		res = append(res, l.Name)
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  6. internal/logger/logger.go

    		if p < i {
    			data.Swap(p, i)
    		}
    	}
    	return p + 1
    }
    
    // Remove any duplicates and return unique entries.
    func uniqueEntries(paths []string) []string {
    	sort.Strings(paths)
    	n := uniq(sort.StringSlice(paths))
    	return paths[:n]
    }
    
    // Init sets the trimStrings to possible GOPATHs
    // and GOROOT directories. Also append github.com/minio/minio
    // This is done to clean up the filename, when stack trace is
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/fields/selector.go

    			}
    		}
    	}
    	return "", "", "", false
    }
    
    func parseSelector(selector string, fn TransformFunc) (Selector, error) {
    	parts := splitTerms(selector)
    	sort.StringSlice(parts).Sort()
    	var items []Selector
    	for _, part := range parts {
    		if part == "" {
    			continue
    		}
    		lhs, op, rhs, ok := splitTerm(part)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 23 20:40:07 UTC 2020
    - 12.3K bytes
    - Viewed (0)
  8. cmd/common-main.go

    		}
    		ctxt.MemLimit = mlimit
    	} else {
    		ctxt.MemLimit = memAvailable
    	}
    
    	if memAvailable < ctxt.MemLimit {
    		ctxt.MemLimit = memAvailable
    	}
    
    	ctxt.FTP = ctx.StringSlice("ftp")
    	ctxt.SFTP = ctx.StringSlice("sftp")
    	ctxt.Interface = ctx.String("interface")
    	ctxt.UserTimeout = ctx.Duration("conn-user-timeout")
    	ctxt.SendBufSize = ctx.Int("send-buf-size")
    	ctxt.RecvBufSize = ctx.Int("recv-buf-size")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. src/encoding/gob/encoder_test.go

    		nilBoolChannelPtr *chan bool
    		nilStringSlice    []string
    		stringSlice       = make([]string, 1)
    		nilStringSlicePtr *[]string
    	)
    
    	testCases := []struct {
    		value     any
    		mustPanic bool
    	}{
    		{nilStringPtr, true},
    		{intMap, false},
    		{intMapPtr, false},
    		{nilIntMapPtr, true},
    		{zero, false},
    		{nilStringSlice, false},
    		{stringSlice, false},
    		{nilStringSlicePtr, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. src/cmd/vet/testdata/print/print.go

    // Issue 26486.
    func dbg(format string, args ...interface{}) {
    	if format == "" {
    		format = "%v"
    	}
    	fmt.Printf(format, args...)
    }
    
    func PointersToCompoundTypes() {
    	stringSlice := []string{"a", "b"}
    	fmt.Printf("%s", &stringSlice) // not an error
    
    	intSlice := []int{3, 4}
    	fmt.Printf("%s", &intSlice) // ERROR "Printf format %s has arg &intSlice of wrong type \*\[\]int"
    
    	stringArray := [2]string{"a", "b"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
Back to top