Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of about 10,000 for stringy (0.09 sec)

  1. pkg/util/flag/flags.go

    	}
    	return nil
    }
    
    // String returns the flag value
    func (v *ReservedMemoryVar) String() string {
    	if v == nil || v.Value == nil {
    		return ""
    	}
    
    	var slices []string
    	for _, reservedMemory := range *v.Value {
    		var limits []string
    		for resourceName, q := range reservedMemory.Limits {
    			limits = append(limits, fmt.Sprintf("%s=%s", resourceName, q.String()))
    		}
    
    		sort.Strings(limits)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 19 03:30:46 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  2. pkg/kube/inject/template.go

    	}
    	return proto.Message(pc)
    }
    
    func toJSONMap(mps ...map[string]string) string {
    	data, err := json.Marshal(mergeMaps(mps...))
    	if err != nil {
    		return ""
    	}
    	return string(data)
    }
    
    func omit(dict map[string]string, keys ...string) map[string]string {
    	res := map[string]string{}
    
    	omit := make(map[string]bool, len(keys))
    	for _, k := range keys {
    		omit[k] = true
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 02:12:03 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. cmd/dependencyverifier/dependencyverifier.go

    	if err != nil {
    		log.Fatal(err)
    	}
    	vendoredModules := map[string]bool{}
    	for _, l := range strings.Split(string(vendorModulesTxt), "\n") {
    		parts := strings.Split(l, " ")
    		if len(parts) == 3 && parts[0] == "#" && strings.HasPrefix(parts[2], "v") {
    			vendoredModules[parts[1]] = true
    		}
    	}
    	config.Status.UnwantedVendored = []string{}
    	for unwanted := range configFromFile.Spec.UnwantedModules {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 07 01:48:30 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/search/search.go

    // modifying version queries.
    func CleanPatterns(patterns []string) []string {
    	if len(patterns) == 0 {
    		return []string{"."}
    	}
    	var out []string
    	for _, a := range patterns {
    		var p, v string
    		if build.IsLocalImport(a) || filepath.IsAbs(a) {
    			p = a
    		} else if i := strings.IndexByte(a, '@'); i < 0 {
    			p = a
    		} else {
    			p = a[:i]
    			v = a[i:]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/listener.go

    				fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", name, strings.Join(addresses, ","), port, listenerType)
    			} else {
    				fmt.Fprintf(w, "%v\t%v\t%v\n", strings.Join(addresses, ","), port, listenerType)
    			}
    		}
    	}
    	return w.Flush()
    }
    
    type filterchain struct {
    	match       string
    	destination string
    }
    
    var (
    	plaintextHTTPALPNs = []string{"http/1.0", "http/1.1", "h2c"}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 12:37:14 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/ModuleDependency.java

        }
    
        private static boolean scopeEquals(String lhs, String rhs) {
            if ("COMPILE".equals(lhs)) {
                return Strings.isNullOrEmpty(rhs) || "COMPILE".equals(rhs);
            } else if ("COMPILE".equals(rhs)) {
                return Strings.isNullOrEmpty(lhs);
            } else {
                return Objects.equal(lhs, rhs);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. test/fixedbugs/issue27201.go

    package main
    
    import (
    	"runtime"
    	"strings"
    )
    
    func main() {
    	f(nil)
    }
    
    func f(p *int32) {
    	defer checkstack()
    	v := *p         // panic should happen here, line 20
    	sink = int64(v) // not here, line 21
    }
    
    var sink int64
    
    func checkstack() {
    	_ = recover()
    	var buf [1024]byte
    	n := runtime.Stack(buf[:], false)
    	s := string(buf[:n])
    	if strings.Contains(s, "issue27201.go:21 ") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 14 22:41:33 UTC 2019
    - 681 bytes
    - Viewed (0)
  8. operator/pkg/helm/renderer.go

    	return profiles, nil
    }
    
    // stripPrefix removes the given prefix from prefix.
    func stripPrefix(path, prefix string) string {
    	pl := len(strings.Split(prefix, "/"))
    	pv := strings.Split(path, "/")
    	return strings.Join(pv[pl:], "/")
    }
    
    // list all the profiles.
    func ListProfiles(charts string) ([]string, error) {
    	profiles, err := readProfiles(charts)
    	if err != nil {
    		return nil, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 13 01:59:17 UTC 2022
    - 5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/str/str_test.go

    package str
    
    import (
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    var foldDupTests = []struct {
    	list   []string
    	f1, f2 string
    }{
    	{StringList("math/rand", "math/big"), "", ""},
    	{StringList("math", "strings"), "", ""},
    	{StringList("strings"), "", ""},
    	{StringList("strings", "strings"), "strings", "strings"},
    	{StringList("Rand", "rand", "math", "math/rand", "math/Rand"), "Rand", "rand"},
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 16:49:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go

    					if len(subresource) > 0 && strings.HasPrefix(res, "*/") && subresource == strings.TrimPrefix(res, "*/") {
    						return true
    					}
    					// match "resource/*"
    					if strings.HasSuffix(res, "/*") && resource == strings.TrimSuffix(res, "/*") {
    						return true
    					}
    				}
    			}
    		}
    	}
    	return false
    }
    
    // Utility function to check whether a string slice contains a string.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 6.1K bytes
    - Viewed (0)
Back to top