Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of about 10,000 for String4 (0.12 sec)

  1. istioctl/pkg/workload/workload_test.go

    	tests := []struct {
    		name string
    		arg  []string
    		want map[string]string
    	}{
    		{name: "empty", arg: []string{""}, want: map[string]string{"": ""}},
    		{name: "one-valid", arg: []string{"key=value"}, want: map[string]string{"key": "value"}},
    		{name: "one-valid-double-equals", arg: []string{"key==value"}, want: map[string]string{"key": "=value"}},
    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/annotations/annotationsOnDeclaration/direct/varargNamedParameter.kt

    annotation class A(vararg val strings: String)
    
    @A(strings = ["foo", "bar"])
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jan 12 10:48:21 UTC 2023
    - 94 bytes
    - Viewed (0)
  3. src/go/doc/comment/parse.go

    			break
    		}
    		if b == "" || strings.HasPrefix(b, " ") {
    			return false // not followed by non-space
    		}
    	}
    
    	return true
    }
    
    // oldHeading returns the *Heading for the given old-style section heading line.
    func (d *parseDoc) oldHeading(line string) Block {
    	return &Heading{Text: []Text{Plain(strings.TrimSpace(line))}}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  4. pkg/volume/util/subpath/subpath_windows.go

    func isDeviceOrUncPath(path string) bool {
    	if strings.HasPrefix(path, "Volume") || strings.HasPrefix(path, "\\\\?\\") || strings.HasPrefix(path, "\\\\.\\") || strings.HasPrefix(path, "UNC") {
    		return true
    	}
    	return false
    }
    
    // getUpperPath removes the last level of directory.
    func getUpperPath(path string) string {
    	sep := fmt.Sprintf("%c", filepath.Separator)
    	upperpath := strings.TrimSuffix(path, sep)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/go.go

    		return
    	}
    	data := string(bdata)
    
    	// process header lines
    	for data != "" {
    		var line string
    		line, data, _ = strings.Cut(data, "\n")
    		if line == "main" {
    			lib.Main = true
    		}
    		if line == "" {
    			break
    		}
    	}
    
    	// look for cgo section
    	p0 := strings.Index(data, "\n$$  // cgo")
    	var p1 int
    	if p0 >= 0 {
    		p0 += p1
    		i := strings.IndexByte(data[p0+1:], '\n')
    		if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. src/encoding/csv/writer.go

    // We used to quote empty strings, but we do not anymore (as of Go 1.4).
    // The two representations should be equivalent, but Postgres distinguishes
    // quoted vs non-quoted empty string during database imports, and it has
    // an option to force the quoted behavior for non-quoted CSV but it has
    // no option to force the non-quoted behavior for quoted CSV, making
    // CSV with quoted empty strings strictly less useful.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/vendor.go

    				continue
    			}
    
    			if annotations, ok := strings.CutPrefix(line, "## "); ok {
    				// Metadata. Take the union of annotations across multiple lines, if present.
    				meta := vendorMeta[mod]
    				for _, entry := range strings.Split(annotations, ";") {
    					entry = strings.TrimSpace(entry)
    					if entry == "explicit" {
    						meta.Explicit = true
    					}
    					if goVersion, ok := strings.CutPrefix(entry, "go "); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 18:09:22 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. src/cmd/nm/nm_test.go

    	}
    	names := make(map[string]string)
    	for _, line := range strings.Split(string(out), "\n") {
    		if line == "" {
    			continue
    		}
    		f := strings.Split(line, "=")
    		if len(f) != 2 {
    			t.Fatalf("unexpected output line: %q", line)
    		}
    		names["main."+f[0]] = f[1]
    	}
    
    	runtimeSyms := map[string]string{
    		"runtime.text":      "T",
    		"runtime.etext":     "T",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/labels/labels.go

    type Set map[string]string
    
    // String returns all labels listed as a human readable string.
    // Conveniently, exactly the format that ParseSelector takes.
    func (ls Set) String() string {
    	selector := make([]string, 0, len(ls))
    	for key, value := range ls {
    		selector = append(selector, key+"="+value)
    	}
    	// Sort for determinism.
    	sort.StringSlice(selector).Sort()
    	return strings.Join(selector, ",")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/imports/scan_test.go

    	}
    	for _, dir := range dirs {
    		if !dir.IsDir() || strings.HasPrefix(dir.Name(), ".") {
    			continue
    		}
    		t.Run(dir.Name(), func(t *testing.T) {
    			tagsData, err := os.ReadFile(filepath.Join("testdata", dir.Name(), "tags.txt"))
    			if err != nil {
    				t.Fatalf("error reading tags: %v", err)
    			}
    			tags := make(map[string]bool)
    			for _, t := range strings.Fields(string(tagsData)) {
    				tags[t] = true
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 21:55:52 UTC 2022
    - 2.2K bytes
    - Viewed (0)
Back to top