- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of about 10,000 for stringy (0.13 sec)
-
src/go/printer/comment.go
kind = "//" var b strings.Builder for _, c := range list { after, found := strings.CutPrefix(c.Text, "//") if !found { return list } // Accumulate //go:build etc lines separately. if isDirective(after) { directives = append(directives, c) continue } b.WriteString(strings.TrimPrefix(after, " ")) b.WriteString("\n") } text = b.String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 07:35:19 UTC 2022 - 3.5K bytes - Viewed (0) -
src/cmd/go/internal/str/str.go
if 'A' <= r && r <= 'Z' { r += 'a' - 'A' } b.WriteRune(r) } return b.String() } // FoldDup reports a pair of strings from the list that are // equal according to strings.EqualFold. // It returns "", "" if there are no such strings. func FoldDup(list []string) (string, string) { clash := map[string]string{} for _, s := range list { fold := ToFold(s) if t := clash[fold]; t != "" { if s > t {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 20:08:07 UTC 2024 - 2.3K bytes - Viewed (0) -
test/fixedbugs/issue29919.dir/a.go
if !strings.Contains(s, "a.go:15") { panic("missing a.go:15") } if !strings.Contains(s, "a.go:19") { panic("missing a.go:19") } if !strings.Contains(s, "a.init") { panic("missing a.init") } // Check the CallersFrames results. if debug { iter := runtime.CallersFrames(pcs[:n]) for { f, more := iter.Next() fmt.Printf("%s %s:%d\n", f.Function, f.File, f.Line) if !more { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 17:50:47 UTC 2022 - 1.6K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject_test.go
}, { // case 1 Args: strings.Split("-f missing.yaml", " "), ExpectedRegexp: regexp.MustCompile(`open missing.yaml: no such file or directory`), WantException: true, }, { // case 2 Args: strings.Split( "--meshConfigFile testdata/mesh-config.yaml"+ " --injectConfigFile testdata/inject-config.yaml -f testdata/deployment/hello.yaml"+ " --valuesFile testdata/inject-values.yaml", " "),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 3.4K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus_test.go
type execTestCase struct { args []string revision string noIstiod bool // Typically use one of the three expectedOutput string // Expected constant output expectedString string // String output is expected to contain wantException bool } func TestProxyStatus(t *testing.T) { cases := []execTestCase{ { // case 0, with no Isitod instance args: []string{}, noIstiod: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 08:28:50 UTC 2024 - 5.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go
} } return nil } func checkArguments(fields []string) error { for _, arg := range fields[1:] { for _, elem := range strings.Split(arg, ",") { if strings.HasPrefix(elem, "!!") { return fmt.Errorf("invalid double negative in build constraint: %s", arg) } elem = strings.TrimPrefix(elem, "!") for _, c := range elem {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/test/util/yml/cache_test.go
by, err := os.ReadFile(file) g.Expect(err).To(BeNil()) g.Expect(strings.TrimSpace(string(by))).To(Equal(strings.TrimSpace(gateway))) keys, err = c.Apply(updatedGateway) g.Expect(err).To(BeNil()) file = c.GetFileFor(keys[0]) by, err = os.ReadFile(file) g.Expect(err).To(BeNil()) g.Expect(strings.TrimSpace(string(by))).To(Equal(strings.TrimSpace(updatedGateway))) applyKeys := keys keys = c.AllKeys()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 6.8K bytes - Viewed (0) -
src/crypto/purego_test.go
} pkgs := strings.Split(strings.TrimSpace(string(out)), "\n") cmd = exec.Command(testenv.GoToolPath(t), "tool", "dist", "list") cmd.Stderr = os.Stderr out, err = cmd.Output() if err != nil { log.Fatalf("loading architecture list: %v\n%s", err, out) } allGOARCH := make(map[string]bool) for _, pair := range strings.Split(strings.TrimSpace(string(out)), "\n") { GOARCH := strings.Split(pair, "/")[1]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 1.8K 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) -
src/cmd/vendor/github.com/google/pprof/profile/encode.go
} func addString(strings map[string]int, s string) int64 { i, ok := strings[s] if !ok { i = len(strings) strings[s] = i } return int64(i) } func getString(strings []string, strng *int64, err error) (string, error) { if err != nil { return "", err } s := int(*strng) if s < 0 || s >= len(strings) { return "", errMalformed } *strng = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17.1K bytes - Viewed (0)