Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Newlines (0.66 sec)

  1. src/go/printer/printer_test.go

    		// Move comment one byte down in the source.
    		comment.Slash++
    	}
    }
    
    // Verify that the printer produces a correct program
    // even if the position information of comments introducing newlines
    // is incorrect.
    func TestBadComments(t *testing.T) {
    	t.Parallel()
    	const src = `
    // first comment - text and position changed by test
    package p
    import "fmt"
    const pi = 3.14 // rough circle
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. doc/go_spec.html

    </li>
    </ol>
    
    <p>
    A comment cannot start inside a <a href="#Rune_literals">rune</a> or
    <a href="#String_literals">string literal</a>, or inside a comment.
    A general comment containing no newlines acts like a space.
    Any other comment acts like a newline.
    </p>
    
    <h3 id="Tokens">Tokens</h3>
    
    <p>
    Tokens form the vocabulary of the Go language.
    There are four classes: <i>identifiers</i>, <i>keywords</i>, <i>operators
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			expectedRemainingBudget: -1,
    		},
    		{
    			name:                  "messageExpression is not allowed to generate a string with newlines",
    			message:               "message not messageExpression",
    			messageExpression:     `"str with \na newline"`,
    			costBudget:            celconfig.RuntimeCELCostBudget,
    			expectedLogErr:        "messageExpression should not contain line breaks",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  4. security/pkg/pki/util/crypto.go

    	default:
    		return nil, fmt.Errorf("private key is not ECDSA based")
    	}
    }
    
    // PemCertBytestoString: takes an array of PEM certs in bytes and returns a string array in the same order with
    // trailing newline characters removed
    func PemCertBytestoString(caCerts []byte) []string {
    	certs := []string{}
    	var cert string
    	pemBlock := caCerts
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/testng/TestNGOptions.java

                    protected void doExecute(BufferedWriter writer) throws Exception {
                        writer.write("<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\">");
                        writer.newLine();
                        writer.write(suiteXmlMarkup);
                    }
                });
    
                suites.add(buildSuiteXml);
            }
    
            return suites;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. pilot/pkg/model/telemetry_logging_test.go

    	}{
    		{
    			name:     "empty",
    			expected: EnvoyTextLogFormat,
    		},
    		{
    			name:         "contains newline",
    			formatString: "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% \n",
    			expected:     "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% \n",
    		},
    		{
    			name:         "miss newline",
    			formatString: "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  7. pilot/pkg/model/telemetry_logging.go

    	}
    }
    
    func fileAccessLogFormat(formatString string) string {
    	if formatString != "" {
    		// From the spec: "NOTE: Istio will insert a newline ('\n') on all formats (if missing)."
    		if !strings.HasSuffix(formatString, "\n") {
    			formatString += "\n"
    		}
    
    		return formatString
    	}
    
    	return EnvoyTextLogFormat
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/inline.go

    		c := s[i+1]
    		if isPunct(c) {
    			return &Escaped{Plain{s[i+1 : i+2]}}, i, i + 2, true
    		}
    		if c == '\n' { // TODO what about eof
    			if i > 0 && s[i-1] == '\\' {
    				p.corner = true // goldmark mishandles \\\ newline
    			}
    			end := i + 2
    			for end < len(s) && (s[end] == ' ' || s[end] == '\t') {
    				end++
    			}
    			return &HardBreak{}, i, end, true
    		}
    	}
    	return nil, 0, 0, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/help/helpdoc.go

    import paths, using the custom domain or the known hosting site.
    
    A package statement is said to have an "import comment" if it is immediately
    followed (before the next newline) by a comment of one of these two forms:
    
    	package math // import "path"
    	package math /* import "path" */
    
    The go command will refuse to install a package with an import comment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //		directives whose full original source text (excluding
    //		any trailing spaces and final newline) matches the
    //		expression.
    //
    //	-skip=""
    //		if non-empty, specifies a regular expression to suppress
    //		directives whose full original source text (excluding
    //		any trailing spaces and final newline) matches the
    //		expression. If a directive matches both the -run and
    //		the -skip arguments, it is skipped.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top