- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 131 for hasPrefix (0.65 sec)
-
src/cmd/cgo/internal/test/issue1435.go
break } // Fall through in the unlikely case // that filter at some point is // "Pid:\t". } if strings.HasPrefix(line, filter) { if line == expected { foundAThread = true break } if filter == "Groups:" && strings.HasPrefix(line, "Groups:\t") { // https://github.com/golang/go/issues/46145
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 28 21:31:41 UTC 2023 - 7.5K bytes - Viewed (0) -
src/cmd/dist/exec.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 21:52:09 UTC 2023 - 957 bytes - Viewed (0) -
src/cmd/go/internal/gover/gomod.go
line = bytes.TrimSpace(line) if v, ok := parseKey(line, key); ok { 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
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/cmd/go/internal/modfetch/coderepo.go
}() rev, err := module.PseudoVersionRev(version) if err != nil { return err } if rev != info.Short { switch { case strings.HasPrefix(rev, info.Short): return fmt.Errorf("revision is longer than canonical (expected %s)", info.Short) case strings.HasPrefix(info.Short, rev): return fmt.Errorf("revision is shorter than canonical (expected %s)", info.Short) default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 38.4K bytes - Viewed (0) -
src/cmd/dist/build.go
} xatexit(rmworkdir) tooldir = pathf("%s/pkg/tool/%s_%s", goroot, gohostos, gohostarch) goversion := findgoversion() isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go") } // compilerEnv returns a map from "goos/goarch" to the // compiler setting to use for that platform.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
misc/ios/go_ios_exec.go
var env []string for _, e := range os.Environ() { // Don't override TMPDIR, HOME, GOCACHE on the device. if strings.HasPrefix(e, "TMPDIR=") || strings.HasPrefix(e, "HOME=") || strings.HasPrefix(e, "GOCACHE=") { continue } env = append(env, e) } lldb := exec.Command( "python", "-", // Read script from stdin. target, appdir, deviceapp,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 23.4K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
return false } for _, goSums := range goSum.w { for _, h := range goSums[mod] { if !strings.HasPrefix(h, "h1:") { continue } if !goSum.status[modSum{mod, h}].dirty { return true } } } for _, h := range goSum.m[mod] { if !strings.HasPrefix(h, "h1:") { continue } if !goSum.status[modSum{mod, h}].dirty { return true } } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback_windows.go
continue } // In module mode, this package has a fully-qualified import path. // Remove it if present. fname = strings.TrimPrefix(fname, "cmd/cgo/internal/") if !strings.HasPrefix(fname, "test.") { continue } got = append(got, fname) } if !reflect.DeepEqual(want, got) { t.Errorf("incorrect backtrace:\nwant:\t%v\ngot:\t%v", want, got) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 16:01:37 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
lines := strings.SplitAfter(string(data), "\n") Diff: for _, line := range lines { lineno++ // Ignore include of textflag.h. if strings.HasPrefix(line, "#include ") { continue } // Ignore GLOBL. if strings.HasPrefix(line, "GLOBL ") { continue } // The general form of a test input line is: // // comment // INST args [// printed form] [// hex encoding]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 18:42:59 UTC 2023 - 11.6K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/vcs.go
Time: tm, Version: rev, } return info, nil } func fossilParseStat(rev, out string) (*RevInfo, error) { for _, line := range strings.Split(out, "\n") { if strings.HasPrefix(line, "uuid:") || strings.HasPrefix(line, "hash:") { f := strings.Fields(line) if len(f) != 5 || len(f[1]) != 40 || f[4] != "UTC" { return nil, vcsErrorf("unexpected response from fossil info: %q", line) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 17.3K bytes - Viewed (0)