Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 946 for COMMENT (0.23 sec)

  1. src/go/doc/example_internal_test.go

    			name: "extra space",
    			in: `package p
    import (
    	"a"
    
    
    	"b"
    	"c"
    
    
    	"d"
    )
    `,
    			want: []string{"a", "b", "d"},
    		},
    		{
    			name: "line comment",
    			in: `package p
    import (
    	"a" // comment
    	"b" // comment
    
    	"c"
    )`,
    			want: []string{"a", "c"},
    		},
    		{
    			name: "named import",
    			in: `package p
    import (
    	"a"
    	n "b"
    
    	m "c"
    	"d"
    )`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 14:22:16 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. src/go/doc/comment/testdata/list10.txt

    -- input --
    
    	1. This list
    	2. Starts the comment
    	3. And also has a blank line before it.
    
    All of which is a little weird.
    -- gofmt --
     1. This list
     2. Starts the comment
     3. And also has a blank line before it.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 20:47:52 UTC 2022
    - 247 bytes
    - Viewed (0)
  3. src/html/template/context.go

    	stateJSRegexp
    	// stateJSBlockCmt occurs inside a JavaScript /* block comment */.
    	stateJSBlockCmt
    	// stateJSLineCmt occurs inside a JavaScript // line comment.
    	stateJSLineCmt
    	// stateJSHTMLOpenCmt occurs inside a JavaScript <!-- HTML-like comment.
    	stateJSHTMLOpenCmt
    	// stateJSHTMLCloseCmt occurs inside a JavaScript --> HTML-like comment.
    	stateJSHTMLCloseCmt
    	// stateCSS occurs inside a <style> element or style attribute.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go

    			}
    			// Add comments for all sample types in profile.
    			comment = "[" + strings.Join(st, " | ") + "]"
    		case n == "source_path":
    			continue
    		case n == "nodecount" && v == "-1":
    			comment = "default"
    		case v == "":
    			// Add quotes for empty values.
    			v = `""`
    		}
    		if comment != "" {
    			comment = commentStart + " " + comment
    		}
    		args = append(args, fmt.Sprintf("  %-25s = %-20s %s", n, v, comment))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  5. src/go/build/doc.go

    // constraints and containing a "//go:binary-only-package" comment. Like a
    // build constraint, this comment appeared at the top of a file, preceded
    // only by blank lines and other line comments and with a blank line
    // following the comment, to separate it from the package documentation.
    // Unlike build constraints, this comment is only recognized in non-test
    // Go source files.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/go/parser/parser.go

    	var list []*ast.Comment
    	endline = p.file.Line(p.pos)
    	for p.tok == token.COMMENT && p.file.Line(p.pos) <= endline+n {
    		var comment *ast.Comment
    		comment, endline = p.consumeComment()
    		list = append(list, comment)
    	}
    
    	// add comment group to the comments list
    	comments = &ast.CommentGroup{List: list}
    	p.comments = append(p.comments, comments)
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  7. src/cmd/gofmt/testdata/crlf.golden

    /*
    Source containing CR/LF line endings.
    The gofmt'ed output must only have LF
    line endings.
    Test case for issue 3961.
    */
    package main
    
    func main() {
    	// line comment
    	println("hello, world!") // another line comment
    	println()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 230 bytes
    - Viewed (0)
  8. src/cmd/gofmt/testdata/crlf.input

    L1:/*
    L2:Source containing CR/LF line endings.
    L3:The gofmt'ed output must only have LF
    L4:line endings.
    L5:Test case for issue 3961.
    L6:*/
    L7:package main
    L8:
    L9:func main() {
    L10:	// line comment
    L11:	println("hello, world!") // another line comment
    L12:	println()
    L13:}
    ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 243 bytes
    - Viewed (0)
  9. pkg/proxy/nftables/helpers_test.go

    	add element ip testing no-endpoint-nodeports { tcp . 3001 comment "ns2/svc2:p80" : drop }
    	add element ip testing no-endpoint-services { 1.2.3.4 . tcp . 80 comment "ns2/svc2:p80" : drop }
    	add element ip testing no-endpoint-services { 192.168.99.22 . tcp . 80 comment "ns2/svc2:p80" : drop }
    	`)
    
    var testExpected = dedent.Dedent(`
    	add table ip testing { comment "rules for kube-proxy" ; }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  10. src/internal/txtar/archive.go

    // symbolic links, and so on.
    //
    // # Txtar format
    //
    // A txtar archive is zero or more comment lines and then a sequence of file entries.
    // Each file entry begins with a file marker line of the form "-- FILENAME --"
    // and is followed by zero or more file content lines making up the file data.
    // The comment or file content ends at the next file marker line.
    // The file marker line must begin with the three-byte sequence "-- "
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top