- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for containsKey (1.04 sec)
-
src/cmd/cgo/internal/testplugin/testdata/mangle/plugin.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 18 15:53:47 UTC 2023 - 722 bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
// A gccgo command line can contain -( and -). // Make sure we quote them since they are special to the shell. // The trimpath argument can also contain > (part of =>) and ;. Quote those too. if s == "" || strings.ContainsAny(s, " ()>;") || len(q) > len(s)+2 { buf.WriteString(q) } else { buf.WriteString(s) } } return buf.String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/go/internal/work/buildid.go
} fields, _ := quoted.Split(compiler) if len(fields) == 0 { return "", "", fmt.Errorf("%s: compilation command confusion %q", name, out) } exe = fields[0] if !strings.ContainsAny(exe, `/\`) { if lp, err := cfg.LookPath(exe); err == nil { exe = lp } } id, err = buildid.ReadFile(exe) if err != nil { return "", "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:31:25 UTC 2024 - 26.2K bytes - Viewed (0) -
src/cmd/go/internal/gover/toolchain.go
// Examples: // // FromToolchain("go1.2.3") == "1.2.3" // FromToolchain("go1.2.3-bigcorp") == "1.2.3" // FromToolchain("invalid") == "" func FromToolchain(name string) string { if strings.ContainsAny(name, "\\/") { // The suffix must not include a path separator, since that would cause // exec.LookPath to resolve it from a relative directory instead of from // $PATH. return "" } var v string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3K bytes - Viewed (0) -
src/cmd/go/internal/work/shell_test.go
f.Add([]byte(`broken flag\`)) f.Add([]byte(`extra broken flag \`)) f.Add([]byte(`\`)) f.Add([]byte(`"broken\"" "extra" \`)) f.Fuzz(func(t *testing.T, b []byte) { t.Parallel() if bytes.ContainsAny(b, "*?[#~%\x00{}!") { t.Skipf("skipping %#q: contains a sometimes-quoted character", b) } // splitPkgConfigOutput itself rejects inputs that contain unquoted
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 15 15:30:05 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/edit.go
} modload.WriteWorkFile(gowork, workFile) } // flagEditworkGodebug implements the -godebug flag. func flagEditworkGodebug(arg string) { key, value, ok := strings.Cut(arg, "=") if !ok || strings.ContainsAny(arg, "\"`',") { base.Fatalf("go: -godebug=%s: need key=value", arg) } workedits = append(workedits, func(f *modfile.WorkFile) { if err := f.AddGodebug(key, value); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/doc/main.go
// case letter, it can only be a symbol in the current directory. // Kills the problem caused by case-insensitive file systems // matching an upper case name as a package name. if !strings.ContainsAny(arg, `/\`) && token.IsExported(arg) { pkg, err := build.ImportDir(".", build.ImportComment) if err == nil { return pkg, "", arg, false } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/cgo/ast.go
if s.Name != nil { error_(s.Path.Pos(), `cannot rename import "C"`) } cg := s.Doc if cg == nil && len(decl.Specs) == 1 { cg = decl.Doc } if cg != nil { if strings.ContainsAny(abspath, "\r\n") { // This should have been checked when the file path was first resolved, // but we double check here just to be sure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
src/cmd/go/internal/modload/init.go
} func CheckGodebug(verb, k, v string) error { if strings.ContainsAny(k, " \t") { return fmt.Errorf("key contains space") } if strings.ContainsAny(v, " \t") { return fmt.Errorf("value contains space") } if strings.ContainsAny(k, ",") { return fmt.Errorf("key contains comma") } if strings.ContainsAny(v, ",") { return fmt.Errorf("value contains comma") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/vcs.go
return []string{"fossil", "cat", "-R", ".fossil", "-r", rev, file} }, readZip: func(rev, subdir, remote, target string) []string { extra := []string{} if subdir != "" && !strings.ContainsAny(subdir, "*?[],") { extra = []string{"--include", subdir} } // Note that vcsRepo.ReadZip below rewrites this command // to run in a different directory, to work around a fossil bug.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 17.3K bytes - Viewed (0)