- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of about 10,000 for String2 (0.24 sec)
-
src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go
// of other commands. type shortcuts map[string][]string func (a shortcuts) expand(input string) []string { input = strings.TrimSpace(input) if a != nil { if r, ok := a[input]; ok { return r } } return []string{input} } var pprofShortcuts = shortcuts{ ":": []string{"focus=", "ignore=", "hide=", "tagfocus=", "tagignore="}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 10.6K bytes - Viewed (0) -
schema/index.go
for _, value := range strings.Split(field.Tag.Get("gorm"), ";") { if value != "" { v := strings.Split(value, ":") k := strings.TrimSpace(strings.ToUpper(v[0])) if k == "INDEX" || k == "UNIQUEINDEX" { var ( name string tag = strings.Join(v[1:], ":") idx = strings.Index(tag, ",") tagSetting = strings.Join(strings.Split(tag, ",")[1:], ",")
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sun Feb 04 07:49:19 UTC 2024 - 3.7K bytes - Viewed (0) -
operator/pkg/util/yaml.go
} // IsYAMLEmpty reports whether the YAML string y is logically empty. func IsYAMLEmpty(y string) bool { var yc []string for _, l := range strings.Split(y, "\n") { yt := strings.TrimSpace(l) if !strings.HasPrefix(yt, "#") && !strings.HasPrefix(yt, "---") { yc = append(yc, l) } } res := strings.TrimSpace(strings.Join(yc, "\n")) return res == "{}" || res == ""
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 14 02:41:27 UTC 2023 - 7.2K bytes - Viewed (0) -
src/path/filepath/path_windows.go
import ( "os" "strings" "syscall" ) // HasPrefix exists for historical compatibility and should not be used. // // Deprecated: HasPrefix does not respect path boundaries and // does not ignore case when required. func HasPrefix(p, prefix string) bool { if strings.HasPrefix(p, prefix) { return true } return strings.HasPrefix(strings.ToLower(p), strings.ToLower(prefix)) } func splitList(path string) []string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 3K bytes - Viewed (0) -
cluster/gce/gci/apiserver_etcd_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 18 11:14:24 UTC 2021 - 5.6K bytes - Viewed (0) -
src/slices/example_test.go
return strings.Compare(strings.ToLower(a), strings.ToLower(b)) }) fmt.Println(names) // Output: // [alice Bob VERA] } func ExampleSortFunc_multiField() { type Person struct { Name string Age int } people := []Person{ {"Gopher", 13}, {"Alice", 55}, {"Bob", 24}, {"Alice", 20}, } slices.SortFunc(people, func(a, b Person) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0) -
tools/bug-report/pkg/util/path/path.go
} } } return r } // String converts a string slice path representation of form ["a", "b", "c"] to a string representation like "a.b.c". func (p Path) String() string { return strings.Join(p, pathSeparator) } // splitEscaped splits a string using the rune r as a separator. It does not split on r if it's prefixed by \. func splitEscaped(s string, r rune) []string { var prev rune if len(s) == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Sep 01 20:55:53 UTC 2020 - 2.2K bytes - Viewed (0) -
src/internal/coverage/cformat/fmt_test.go
total (statements) 62.5%`) gotFuncs := strings.TrimSpace(b4.String()) if wantFuncs != gotFuncs { t.Errorf("emit funcs: got:\n%s\nwant:\n%s\n", gotFuncs, wantFuncs) } if false { t.Logf("text is %s\n", b1.String()) t.Logf("perc is %s\n", b2.String()) t.Logf("perc2 is %s\n", b3.String()) t.Logf("funcs is %s\n", b4.String()) } } func TestEmptyPackages(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:57 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/go/internal/gover/gomod.go
return v } } return "" } func parseKey(line []byte, key string) (string, bool) { if !strings.HasPrefix(string(line), key) { return "", false } s := strings.TrimPrefix(string(line), key) if len(s) == 0 || (s[0] != ' ' && s[0] != '\t') { return "", false } s, _, _ = strings.Cut(s, "//") // strip comments return strings.TrimSpace(s), true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 16:31:25 UTC 2023 - 1.1K bytes - Viewed (0) -
src/net/http/routing_index_test.go
// generates. type generator func(collect func(string)) // genConst generates a single constant string. func genConst(s string) generator { return func(collect func(string)) { collect(s) } } // genChoice generates all the strings in its argument. func genChoice(choices []string) generator { return func(collect func(string)) { for _, c := range choices { collect(c) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 4K bytes - Viewed (0)