- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 67 for Colon (0.1 sec)
-
src/cmd/compile/internal/inline/inlheur/scoring.go
if len(clauses) == 0 { return fmt.Errorf("no clauses") } for _, clause := range clauses { elems := strings.Split(clause, ":") if len(elems) < 2 { return fmt.Errorf("clause %q: expected colon", clause) } if len(elems) != 2 { return fmt.Errorf("clause %q has %d elements, wanted 2", clause, len(elems)) } adj, ok := adjStringToVal(elems[0]) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:42:52 UTC 2024 - 24.2K bytes - Viewed (0) -
src/net/mail/message.go
return m, err } return m, errors.New("malformed initial line: " + line) } for { kv, err := r.ReadContinuedLine() if kv == "" { return m, err } // Key ends at first colon. k, v, ok := strings.Cut(kv, ":") if !ok { return m, errors.New("malformed header line: " + kv) } key := textproto.CanonicalMIMEHeaderKey(k) // Permit empty key, because that is what we did in the past.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 23.5K bytes - Viewed (0) -
src/testing/testing.go
// under the management of go test. if runtime.GOOS == "windows" && len(path) >= 2 { letter, colon := path[0], path[1] if ('a' <= letter && letter <= 'z' || 'A' <= letter && letter <= 'Z') && colon == ':' { // If path starts with a drive letter we're stuck with it regardless. return path } } if os.IsPathSeparator(path[0]) { return path }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/net/mail/message_test.go
"Feedback-Type": []string{"abuse"}, "User-Agent": []string{"SomeGenerator/1.0"}, "Version": []string{"1"}, }, body: "", }, { // RFC 5322 permits any printable ASCII character, // except colon, in a header key. Issue #58862. in: `From: ******@****.*** Custom/Header: v Body `, header: Header{ "From": []string{"******@****.***"}, "Custom/Header": []string{"v"}, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 30.4K bytes - Viewed (0) -
pkg/config/validation/agent/validation_test.go
{"middle dash", "f-oo.bar.com", ""}, {"trailing dot", "foo.bar.com.", ""}, {"prefix dash", "-foo.bar.com", "invalid"}, {"forward slash separated", "foo/bar/com", "invalid"}, {"colon separated", "foo:bar:com", "invalid"}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { err := ValidateTrustDomain(tt.in) if err == nil && tt.err != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 39.1K bytes - Viewed (0) -
pkg/volume/util/util.go
func MakeAbsolutePath(goos, path string) string { if goos != "windows" { return filepath.Clean("/" + path) } // These are all for windows // If there is a colon, give up. if strings.Contains(path, ":") { return path } // If there is a slash, but no drive, add 'c:' if strings.HasPrefix(path, "/") || strings.HasPrefix(path, "\\") { return "c:" + path }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
p.next() c.Cases = p.exprList() case _Default: p.next() default: p.syntaxError("expected case or default or }") p.advance(_Colon, _Case, _Default, _Rbrace) } c.Colon = p.pos() p.want(_Colon) c.Body = p.stmtList() return c } func (p *parser) commClause() *CommClause { if trace { defer p.trace("commClause")() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
rxAsmComment = regexp.MustCompile(`^\s*(.*?)\s*(?://\s*(.+)\s*)?$`) // Regexp to extract an architecture check: architecture name (or triplet), // followed by semi-colon, followed by a comma-separated list of opcode checks. // Extraneous spaces are ignored. // // An example: arm64/v8.1 : -`ADD` , `SUB` // "(\w+)" matches "arm64" (architecture name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
// has the type of the expression in the TypeSwitchGuard." if len(cases) != 1 || T == nil { T = x.typ } obj := NewVar(lhs.Pos(), check.pkg, lhs.Value, T) // TODO(mdempsky): Just use clause.Colon? Why did I even suggest // "at the end of the TypeSwitchCase" in go.dev/issue/16794 instead? scopePos := clause.Pos() // for default clause (len(List) == 0) if n := len(cases); n > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/git.go
os.RemoveAll(r.dir) return nil, err } } } r.remoteURL = r.remote r.remote = "origin" } else { // Local path. // Disallow colon (not in ://) because sometimes // that's rcp-style host:path syntax and sometimes it's not (c:\work). // The go command has always insisted on URL syntax for ssh. if strings.Contains(remote, ":") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 22:10:38 UTC 2024 - 27.4K bytes - Viewed (0)