Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/README.md +42 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/blank.txt +12 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code.txt +94 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code2.txt +31 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code3.txt +33 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code4.txt +38 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code5.txt +21 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code6.txt +24 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/crash1.txt +16 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink.txt +21 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink2.txt +8 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink3.txt +8 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink4.txt +7 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink5.txt +5 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink6.txt +5 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink7.txt +4 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/escape.txt +55 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/head.txt +92 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/head2.txt +36 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/head3.txt +7 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/hello.txt +35 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link.txt +17 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link2.txt +31 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link3.txt +14 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link4.txt +77 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link5.txt +36 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link6.txt +50 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link7.txt +25 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist.txt +18 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist2.txt +39 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist3.txt +31 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist4.txt +36 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list.txt +48 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list10.txt +13 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list2.txt +57 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list3.txt +32 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list4.txt +38 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list5.txt +40 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list6.txt +129 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list7.txt +98 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list8.txt +56 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list9.txt +30 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/para.txt +17 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/quote.txt +15 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text.txt +62 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text2.txt +14 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text3.txt +28 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text4.txt +29 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text5.txt +38 -0
- platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text6.txt +18 -0
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This directory contains test files (*.txt) for the comment parser.
|
| 2 |
+
|
| 3 |
+
The files are in [txtar format](https://pkg.go.dev/golang.org/x/tools/txtar).
|
| 4 |
+
Consider this example:
|
| 5 |
+
|
| 6 |
+
-- input --
|
| 7 |
+
Hello.
|
| 8 |
+
-- gofmt --
|
| 9 |
+
Hello.
|
| 10 |
+
-- html --
|
| 11 |
+
<p>Hello.
|
| 12 |
+
-- markdown --
|
| 13 |
+
Hello.
|
| 14 |
+
-- text --
|
| 15 |
+
Hello.
|
| 16 |
+
|
| 17 |
+
Each `-- name --` line introduces a new file with the given name.
|
| 18 |
+
The file named “input” must be first and contains the input to
|
| 19 |
+
[comment.Parser](https://pkg.go.dev/go/doc/comment/#Parser).
|
| 20 |
+
|
| 21 |
+
The remaining files contain the expected output for the named format generated by
|
| 22 |
+
[comment.Printer](https://pkg.go.dev/go/doc/comment/#Printer):
|
| 23 |
+
“gofmt” for Printer.Comment (Go comment format, as used by gofmt),
|
| 24 |
+
“html” for Printer.HTML, “markdown” for Printer.Markdown, and “text” for Printer.Text.
|
| 25 |
+
The format can also be “dump” for a textual dump of the raw data structures.
|
| 26 |
+
|
| 27 |
+
The text before the `-- input --` line, if present, is JSON to be unmarshalled
|
| 28 |
+
to initialize a comment.Printer. For example, this test case sets the Printer's
|
| 29 |
+
TextWidth field to 20:
|
| 30 |
+
|
| 31 |
+
{"TextWidth": 20}
|
| 32 |
+
-- input --
|
| 33 |
+
Package gob manages streams of gobs - binary values exchanged between an
|
| 34 |
+
Encoder (transmitter) and a Decoder (receiver).
|
| 35 |
+
-- text --
|
| 36 |
+
Package gob
|
| 37 |
+
manages streams
|
| 38 |
+
of gobs - binary
|
| 39 |
+
values exchanged
|
| 40 |
+
between an Encoder
|
| 41 |
+
(transmitter) and a
|
| 42 |
+
Decoder (receiver).
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/blank.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
$
|
| 3 |
+
Blank line at start and end.
|
| 4 |
+
$
|
| 5 |
+
-- gofmt --
|
| 6 |
+
Blank line at start and end.
|
| 7 |
+
-- text --
|
| 8 |
+
Blank line at start and end.
|
| 9 |
+
-- markdown --
|
| 10 |
+
Blank line at start and end.
|
| 11 |
+
-- html --
|
| 12 |
+
<p>Blank line at start and end.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code.txt
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
A tab-indented
|
| 4 |
+
(no, not eight-space indented)
|
| 5 |
+
code block and haiku.
|
| 6 |
+
More text.
|
| 7 |
+
One space
|
| 8 |
+
is
|
| 9 |
+
enough
|
| 10 |
+
to
|
| 11 |
+
start
|
| 12 |
+
a
|
| 13 |
+
block.
|
| 14 |
+
More text.
|
| 15 |
+
|
| 16 |
+
Blocks
|
| 17 |
+
can
|
| 18 |
+
|
| 19 |
+
have
|
| 20 |
+
blank
|
| 21 |
+
lines.
|
| 22 |
+
-- gofmt --
|
| 23 |
+
Text.
|
| 24 |
+
|
| 25 |
+
A tab-indented
|
| 26 |
+
(no, not eight-space indented)
|
| 27 |
+
code block and haiku.
|
| 28 |
+
|
| 29 |
+
More text.
|
| 30 |
+
|
| 31 |
+
One space
|
| 32 |
+
is
|
| 33 |
+
enough
|
| 34 |
+
to
|
| 35 |
+
start
|
| 36 |
+
a
|
| 37 |
+
block.
|
| 38 |
+
|
| 39 |
+
More text.
|
| 40 |
+
|
| 41 |
+
Blocks
|
| 42 |
+
can
|
| 43 |
+
|
| 44 |
+
have
|
| 45 |
+
blank
|
| 46 |
+
lines.
|
| 47 |
+
-- markdown --
|
| 48 |
+
Text.
|
| 49 |
+
|
| 50 |
+
A tab-indented
|
| 51 |
+
(no, not eight-space indented)
|
| 52 |
+
code block and haiku.
|
| 53 |
+
|
| 54 |
+
More text.
|
| 55 |
+
|
| 56 |
+
One space
|
| 57 |
+
is
|
| 58 |
+
enough
|
| 59 |
+
to
|
| 60 |
+
start
|
| 61 |
+
a
|
| 62 |
+
block.
|
| 63 |
+
|
| 64 |
+
More text.
|
| 65 |
+
|
| 66 |
+
Blocks
|
| 67 |
+
can
|
| 68 |
+
|
| 69 |
+
have
|
| 70 |
+
blank
|
| 71 |
+
lines.
|
| 72 |
+
-- html --
|
| 73 |
+
<p>Text.
|
| 74 |
+
<pre>A tab-indented
|
| 75 |
+
(no, not eight-space indented)
|
| 76 |
+
code block and haiku.
|
| 77 |
+
</pre>
|
| 78 |
+
<p>More text.
|
| 79 |
+
<pre>One space
|
| 80 |
+
is
|
| 81 |
+
enough
|
| 82 |
+
to
|
| 83 |
+
start
|
| 84 |
+
a
|
| 85 |
+
block.
|
| 86 |
+
</pre>
|
| 87 |
+
<p>More text.
|
| 88 |
+
<pre> Blocks
|
| 89 |
+
can
|
| 90 |
+
|
| 91 |
+
have
|
| 92 |
+
blank
|
| 93 |
+
lines.
|
| 94 |
+
</pre>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code2.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
|
| 4 |
+
A tab-indented
|
| 5 |
+
(no, not eight-space indented)
|
| 6 |
+
code block and haiku.
|
| 7 |
+
|
| 8 |
+
More text.
|
| 9 |
+
-- gofmt --
|
| 10 |
+
Text.
|
| 11 |
+
|
| 12 |
+
A tab-indented
|
| 13 |
+
(no, not eight-space indented)
|
| 14 |
+
code block and haiku.
|
| 15 |
+
|
| 16 |
+
More text.
|
| 17 |
+
-- markdown --
|
| 18 |
+
Text.
|
| 19 |
+
|
| 20 |
+
A tab-indented
|
| 21 |
+
(no, not eight-space indented)
|
| 22 |
+
code block and haiku.
|
| 23 |
+
|
| 24 |
+
More text.
|
| 25 |
+
-- html --
|
| 26 |
+
<p>Text.
|
| 27 |
+
<pre>A tab-indented
|
| 28 |
+
(no, not eight-space indented)
|
| 29 |
+
code block and haiku.
|
| 30 |
+
</pre>
|
| 31 |
+
<p>More text.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code3.txt
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
|
| 4 |
+
$
|
| 5 |
+
A tab-indented
|
| 6 |
+
(surrounded by more blank lines)
|
| 7 |
+
code block and haiku.
|
| 8 |
+
$
|
| 9 |
+
|
| 10 |
+
More text.
|
| 11 |
+
-- gofmt --
|
| 12 |
+
Text.
|
| 13 |
+
|
| 14 |
+
A tab-indented
|
| 15 |
+
(surrounded by more blank lines)
|
| 16 |
+
code block and haiku.
|
| 17 |
+
|
| 18 |
+
More text.
|
| 19 |
+
-- markdown --
|
| 20 |
+
Text.
|
| 21 |
+
|
| 22 |
+
A tab-indented
|
| 23 |
+
(surrounded by more blank lines)
|
| 24 |
+
code block and haiku.
|
| 25 |
+
|
| 26 |
+
More text.
|
| 27 |
+
-- html --
|
| 28 |
+
<p>Text.
|
| 29 |
+
<pre>A tab-indented
|
| 30 |
+
(surrounded by more blank lines)
|
| 31 |
+
code block and haiku.
|
| 32 |
+
</pre>
|
| 33 |
+
<p>More text.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code4.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
To test, run this command:
|
| 3 |
+
go test -more
|
| 4 |
+
|
| 5 |
+
Or, to test specific things, run this command:
|
| 6 |
+
|
| 7 |
+
go test -more \
|
| 8 |
+
-pkg first/package \
|
| 9 |
+
-pkg second/package \
|
| 10 |
+
-pkg third/package
|
| 11 |
+
|
| 12 |
+
Happy testing!
|
| 13 |
+
-- gofmt --
|
| 14 |
+
To test, run this command:
|
| 15 |
+
|
| 16 |
+
go test -more
|
| 17 |
+
|
| 18 |
+
Or, to test specific things, run this command:
|
| 19 |
+
|
| 20 |
+
go test -more \
|
| 21 |
+
-pkg first/package \
|
| 22 |
+
-pkg second/package \
|
| 23 |
+
-pkg third/package
|
| 24 |
+
|
| 25 |
+
Happy testing!
|
| 26 |
+
-- markdown --
|
| 27 |
+
To test, run this command:
|
| 28 |
+
|
| 29 |
+
go test -more
|
| 30 |
+
|
| 31 |
+
Or, to test specific things, run this command:
|
| 32 |
+
|
| 33 |
+
go test -more \
|
| 34 |
+
-pkg first/package \
|
| 35 |
+
-pkg second/package \
|
| 36 |
+
-pkg third/package
|
| 37 |
+
|
| 38 |
+
Happy testing!
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code5.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
L1
|
| 3 |
+
L2
|
| 4 |
+
L3
|
| 5 |
+
L4
|
| 6 |
+
L5
|
| 7 |
+
- L6 {
|
| 8 |
+
L7
|
| 9 |
+
}
|
| 10 |
+
L8
|
| 11 |
+
-- gofmt --
|
| 12 |
+
L1
|
| 13 |
+
L2
|
| 14 |
+
L3
|
| 15 |
+
L4
|
| 16 |
+
L5
|
| 17 |
+
- L6 {
|
| 18 |
+
L7
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
L8
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/code6.txt
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Run this program:
|
| 3 |
+
|
| 4 |
+
func main() {
|
| 5 |
+
fmt.Println("hello, world")
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
Or this:
|
| 9 |
+
|
| 10 |
+
go func() {
|
| 11 |
+
fmt.Println("hello, world")
|
| 12 |
+
}()
|
| 13 |
+
-- gofmt --
|
| 14 |
+
Run this program:
|
| 15 |
+
|
| 16 |
+
func main() {
|
| 17 |
+
fmt.Println("hello, world")
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
Or this:
|
| 21 |
+
|
| 22 |
+
go func() {
|
| 23 |
+
fmt.Println("hello, world")
|
| 24 |
+
}()
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/crash1.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
[]
|
| 3 |
+
|
| 4 |
+
[]: http://
|
| 5 |
+
-- gofmt --
|
| 6 |
+
[]
|
| 7 |
+
|
| 8 |
+
[]: http://
|
| 9 |
+
-- html --
|
| 10 |
+
<p><a href="http://"></a>
|
| 11 |
+
-- markdown --
|
| 12 |
+
[](http://)
|
| 13 |
+
-- text --
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
[]: http://
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
In this package, see [Doc] and [Parser.Parse].
|
| 3 |
+
There is no [Undef] or [Undef.Method].
|
| 4 |
+
See also the [comment] package,
|
| 5 |
+
especially [comment.Doc] and [comment.Parser.Parse].
|
| 6 |
+
-- gofmt --
|
| 7 |
+
In this package, see [Doc] and [Parser.Parse].
|
| 8 |
+
There is no [Undef] or [Undef.Method].
|
| 9 |
+
See also the [comment] package,
|
| 10 |
+
especially [comment.Doc] and [comment.Parser.Parse].
|
| 11 |
+
-- text --
|
| 12 |
+
In this package, see Doc and Parser.Parse. There is no [Undef] or
|
| 13 |
+
[Undef.Method]. See also the comment package, especially comment.Doc and
|
| 14 |
+
comment.Parser.Parse.
|
| 15 |
+
-- markdown --
|
| 16 |
+
In this package, see [Doc](#Doc) and [Parser.Parse](#Parser.Parse). There is no \[Undef] or \[Undef.Method]. See also the [comment](/go/doc/comment) package, especially [comment.Doc](/go/doc/comment#Doc) and [comment.Parser.Parse](/go/doc/comment#Parser.Parse).
|
| 17 |
+
-- html --
|
| 18 |
+
<p>In this package, see <a href="#Doc">Doc</a> and <a href="#Parser.Parse">Parser.Parse</a>.
|
| 19 |
+
There is no [Undef] or [Undef.Method].
|
| 20 |
+
See also the <a href="/go/doc/comment">comment</a> package,
|
| 21 |
+
especially <a href="/go/doc/comment#Doc">comment.Doc</a> and <a href="/go/doc/comment#Parser.Parse">comment.Parser.Parse</a>.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink2.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
We use [io.Reader] a lot, and also a few map[io.Reader]string.
|
| 3 |
+
|
| 4 |
+
Never [io.Reader]int or Slice[io.Reader] though.
|
| 5 |
+
-- markdown --
|
| 6 |
+
We use [io.Reader](/io#Reader) a lot, and also a few map\[io.Reader]string.
|
| 7 |
+
|
| 8 |
+
Never \[io.Reader]int or Slice\[io.Reader] though.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink3.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
[encoding/json.Marshal] is a doc link.
|
| 3 |
+
|
| 4 |
+
[rot13.Marshal] is not.
|
| 5 |
+
-- markdown --
|
| 6 |
+
[encoding/json.Marshal](/encoding/json#Marshal) is a doc link.
|
| 7 |
+
|
| 8 |
+
\[rot13.Marshal] is not.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink4.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
[io] at start of comment.
|
| 3 |
+
[io] at start of line.
|
| 4 |
+
At end of line: [io]
|
| 5 |
+
At end of comment: [io]
|
| 6 |
+
-- markdown --
|
| 7 |
+
[io](/io) at start of comment. [io](/io) at start of line. At end of line: [io](/io) At end of comment: [io](/io)
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink5.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"DocLinkBaseURL": "https://pkg.go.dev"}
|
| 2 |
+
-- input --
|
| 3 |
+
[encoding/json.Marshal] is a doc link.
|
| 4 |
+
-- markdown --
|
| 5 |
+
[encoding/json.Marshal](https://pkg.go.dev/encoding/json#Marshal) is a doc link.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink6.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"DocLinkBaseURL": "https://go.dev/pkg/"}
|
| 2 |
+
-- input --
|
| 3 |
+
[encoding/json.Marshal] is a doc link, and so is [rsc.io/quote.NonExist].
|
| 4 |
+
-- markdown --
|
| 5 |
+
[encoding/json.Marshal](https://go.dev/pkg/encoding/json/#Marshal) is a doc link, and so is [rsc.io/quote.NonExist](https://go.dev/pkg/rsc.io/quote/#NonExist).
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/doclink7.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
You see more [*bytes.Buffer] than [bytes.Buffer].
|
| 3 |
+
-- markdown --
|
| 4 |
+
You see more [\*bytes.Buffer](/bytes#Buffer) than [bytes.Buffer](/bytes#Buffer).
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/escape.txt
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
What the ~!@#$%^&*()_+-=`{}|[]\:";',./<>?
|
| 3 |
+
|
| 4 |
+
+ Line
|
| 5 |
+
|
| 6 |
+
- Line
|
| 7 |
+
|
| 8 |
+
* Line
|
| 9 |
+
|
| 10 |
+
999. Line
|
| 11 |
+
|
| 12 |
+
## Line
|
| 13 |
+
-- gofmt --
|
| 14 |
+
What the ~!@#$%^&*()_+-=`{}|[]\:";',./<>?
|
| 15 |
+
|
| 16 |
+
+ Line
|
| 17 |
+
|
| 18 |
+
- Line
|
| 19 |
+
|
| 20 |
+
* Line
|
| 21 |
+
|
| 22 |
+
999. Line
|
| 23 |
+
|
| 24 |
+
## Line
|
| 25 |
+
-- text --
|
| 26 |
+
What the ~!@#$%^&*()_+-=`{}|[]\:";',./<>?
|
| 27 |
+
|
| 28 |
+
+ Line
|
| 29 |
+
|
| 30 |
+
- Line
|
| 31 |
+
|
| 32 |
+
* Line
|
| 33 |
+
|
| 34 |
+
999. Line
|
| 35 |
+
|
| 36 |
+
## Line
|
| 37 |
+
-- markdown --
|
| 38 |
+
What the ~!@#$%^&\*()\_+-=\`{}|\[]\\:";',./\<>?
|
| 39 |
+
|
| 40 |
+
\+ Line
|
| 41 |
+
|
| 42 |
+
\- Line
|
| 43 |
+
|
| 44 |
+
\* Line
|
| 45 |
+
|
| 46 |
+
999\. Line
|
| 47 |
+
|
| 48 |
+
\## Line
|
| 49 |
+
-- html --
|
| 50 |
+
<p>What the ~!@#$%^&*()_+-=`{}|[]\:";',./<>?
|
| 51 |
+
<p>+ Line
|
| 52 |
+
<p>- Line
|
| 53 |
+
<p>* Line
|
| 54 |
+
<p>999. Line
|
| 55 |
+
<p>## Line
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/head.txt
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Some text.
|
| 3 |
+
|
| 4 |
+
An Old Heading
|
| 5 |
+
|
| 6 |
+
Not An Old Heading.
|
| 7 |
+
|
| 8 |
+
And some text.
|
| 9 |
+
|
| 10 |
+
# A New Heading.
|
| 11 |
+
|
| 12 |
+
And some more text.
|
| 13 |
+
|
| 14 |
+
# Not a heading,
|
| 15 |
+
because text follows it.
|
| 16 |
+
|
| 17 |
+
Because text precedes it,
|
| 18 |
+
# not a heading.
|
| 19 |
+
|
| 20 |
+
## Not a heading either.
|
| 21 |
+
|
| 22 |
+
-- gofmt --
|
| 23 |
+
Some text.
|
| 24 |
+
|
| 25 |
+
# An Old Heading
|
| 26 |
+
|
| 27 |
+
Not An Old Heading.
|
| 28 |
+
|
| 29 |
+
And some text.
|
| 30 |
+
|
| 31 |
+
# A New Heading.
|
| 32 |
+
|
| 33 |
+
And some more text.
|
| 34 |
+
|
| 35 |
+
# Not a heading,
|
| 36 |
+
because text follows it.
|
| 37 |
+
|
| 38 |
+
Because text precedes it,
|
| 39 |
+
# not a heading.
|
| 40 |
+
|
| 41 |
+
## Not a heading either.
|
| 42 |
+
|
| 43 |
+
-- text --
|
| 44 |
+
Some text.
|
| 45 |
+
|
| 46 |
+
# An Old Heading
|
| 47 |
+
|
| 48 |
+
Not An Old Heading.
|
| 49 |
+
|
| 50 |
+
And some text.
|
| 51 |
+
|
| 52 |
+
# A New Heading.
|
| 53 |
+
|
| 54 |
+
And some more text.
|
| 55 |
+
|
| 56 |
+
# Not a heading, because text follows it.
|
| 57 |
+
|
| 58 |
+
Because text precedes it, # not a heading.
|
| 59 |
+
|
| 60 |
+
## Not a heading either.
|
| 61 |
+
|
| 62 |
+
-- markdown --
|
| 63 |
+
Some text.
|
| 64 |
+
|
| 65 |
+
### An Old Heading {#hdr-An_Old_Heading}
|
| 66 |
+
|
| 67 |
+
Not An Old Heading.
|
| 68 |
+
|
| 69 |
+
And some text.
|
| 70 |
+
|
| 71 |
+
### A New Heading. {#hdr-A_New_Heading_}
|
| 72 |
+
|
| 73 |
+
And some more text.
|
| 74 |
+
|
| 75 |
+
\# Not a heading, because text follows it.
|
| 76 |
+
|
| 77 |
+
Because text precedes it, # not a heading.
|
| 78 |
+
|
| 79 |
+
\## Not a heading either.
|
| 80 |
+
|
| 81 |
+
-- html --
|
| 82 |
+
<p>Some text.
|
| 83 |
+
<h3 id="hdr-An_Old_Heading">An Old Heading</h3>
|
| 84 |
+
<p>Not An Old Heading.
|
| 85 |
+
<p>And some text.
|
| 86 |
+
<h3 id="hdr-A_New_Heading_">A New Heading.</h3>
|
| 87 |
+
<p>And some more text.
|
| 88 |
+
<p># Not a heading,
|
| 89 |
+
because text follows it.
|
| 90 |
+
<p>Because text precedes it,
|
| 91 |
+
# not a heading.
|
| 92 |
+
<p>## Not a heading either.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/head2.txt
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
✦
|
| 3 |
+
|
| 4 |
+
Almost a+heading
|
| 5 |
+
|
| 6 |
+
✦
|
| 7 |
+
|
| 8 |
+
Don't be a heading
|
| 9 |
+
|
| 10 |
+
✦
|
| 11 |
+
|
| 12 |
+
A.b is a heading
|
| 13 |
+
|
| 14 |
+
✦
|
| 15 |
+
|
| 16 |
+
A. b is not a heading
|
| 17 |
+
|
| 18 |
+
✦
|
| 19 |
+
-- gofmt --
|
| 20 |
+
✦
|
| 21 |
+
|
| 22 |
+
Almost a+heading
|
| 23 |
+
|
| 24 |
+
✦
|
| 25 |
+
|
| 26 |
+
Don't be a heading
|
| 27 |
+
|
| 28 |
+
✦
|
| 29 |
+
|
| 30 |
+
# A.b is a heading
|
| 31 |
+
|
| 32 |
+
✦
|
| 33 |
+
|
| 34 |
+
A. b is not a heading
|
| 35 |
+
|
| 36 |
+
✦
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/head3.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"HeadingLevel": 5}
|
| 2 |
+
-- input --
|
| 3 |
+
# Heading
|
| 4 |
+
-- markdown --
|
| 5 |
+
##### Heading {#hdr-Heading}
|
| 6 |
+
-- html --
|
| 7 |
+
<h5 id="hdr-Heading">Heading</h5>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/hello.txt
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Hello,
|
| 3 |
+
world
|
| 4 |
+
|
| 5 |
+
This is
|
| 6 |
+
a test.
|
| 7 |
+
-- dump --
|
| 8 |
+
Doc
|
| 9 |
+
Paragraph
|
| 10 |
+
Plain
|
| 11 |
+
"Hello,\n"
|
| 12 |
+
"world"
|
| 13 |
+
Paragraph
|
| 14 |
+
Plain
|
| 15 |
+
"This is\n"
|
| 16 |
+
"a test."
|
| 17 |
+
-- gofmt --
|
| 18 |
+
Hello,
|
| 19 |
+
world
|
| 20 |
+
|
| 21 |
+
This is
|
| 22 |
+
a test.
|
| 23 |
+
-- html --
|
| 24 |
+
<p>Hello,
|
| 25 |
+
world
|
| 26 |
+
<p>This is
|
| 27 |
+
a test.
|
| 28 |
+
-- markdown --
|
| 29 |
+
Hello, world
|
| 30 |
+
|
| 31 |
+
This is a test.
|
| 32 |
+
-- text --
|
| 33 |
+
Hello, world
|
| 34 |
+
|
| 35 |
+
This is a test.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link.txt
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
The Go home page is https://go.dev/.
|
| 3 |
+
It used to be https://golang.org.
|
| 4 |
+
|
| 5 |
+
-- gofmt --
|
| 6 |
+
The Go home page is https://go.dev/.
|
| 7 |
+
It used to be https://golang.org.
|
| 8 |
+
|
| 9 |
+
-- text --
|
| 10 |
+
The Go home page is https://go.dev/. It used to be https://golang.org.
|
| 11 |
+
|
| 12 |
+
-- markdown --
|
| 13 |
+
The Go home page is [https://go.dev/](https://go.dev/). It used to be [https://golang.org](https://golang.org).
|
| 14 |
+
|
| 15 |
+
-- html --
|
| 16 |
+
<p>The Go home page is <a href="https://go.dev/">https://go.dev/</a>.
|
| 17 |
+
It used to be <a href="https://golang.org">https://golang.org</a>.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link2.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
The Go home page is https://go.dev/.
|
| 3 |
+
It used to be https://golang.org.
|
| 4 |
+
https:// is not a link.
|
| 5 |
+
Nor is https://
|
| 6 |
+
https://☺ is not a link.
|
| 7 |
+
https://:80 is not a link.
|
| 8 |
+
|
| 9 |
+
-- gofmt --
|
| 10 |
+
The Go home page is https://go.dev/.
|
| 11 |
+
It used to be https://golang.org.
|
| 12 |
+
https:// is not a link.
|
| 13 |
+
Nor is https://
|
| 14 |
+
https://☺ is not a link.
|
| 15 |
+
https://:80 is not a link.
|
| 16 |
+
|
| 17 |
+
-- text --
|
| 18 |
+
The Go home page is https://go.dev/. It used to be https://golang.org. https://
|
| 19 |
+
is not a link. Nor is https:// https://☺ is not a link. https://:80 is not a
|
| 20 |
+
link.
|
| 21 |
+
|
| 22 |
+
-- markdown --
|
| 23 |
+
The Go home page is [https://go.dev/](https://go.dev/). It used to be [https://golang.org](https://golang.org). https:// is not a link. Nor is https:// https://☺ is not a link. https://:80 is not a link.
|
| 24 |
+
|
| 25 |
+
-- html --
|
| 26 |
+
<p>The Go home page is <a href="https://go.dev/">https://go.dev/</a>.
|
| 27 |
+
It used to be <a href="https://golang.org">https://golang.org</a>.
|
| 28 |
+
https:// is not a link.
|
| 29 |
+
Nor is https://
|
| 30 |
+
https://☺ is not a link.
|
| 31 |
+
https://:80 is not a link.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link3.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Doc text.
|
| 3 |
+
|
| 4 |
+
[Go home page]: https://go.dev
|
| 5 |
+
-- gofmt --
|
| 6 |
+
Doc text.
|
| 7 |
+
|
| 8 |
+
[Go home page]: https://go.dev
|
| 9 |
+
-- text --
|
| 10 |
+
Doc text.
|
| 11 |
+
-- markdown --
|
| 12 |
+
Doc text.
|
| 13 |
+
-- html --
|
| 14 |
+
<p>Doc text.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link4.txt
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
These are not links.
|
| 3 |
+
|
| 4 |
+
[x
|
| 5 |
+
|
| 6 |
+
[x]:
|
| 7 |
+
|
| 8 |
+
[x]:https://go.dev
|
| 9 |
+
|
| 10 |
+
[x]https://go.dev
|
| 11 |
+
|
| 12 |
+
[x]: surprise://go.dev
|
| 13 |
+
|
| 14 |
+
[x]: surprise!
|
| 15 |
+
|
| 16 |
+
But this is, with a tab (although it's unused).
|
| 17 |
+
|
| 18 |
+
[z]: https://go.dev
|
| 19 |
+
-- gofmt --
|
| 20 |
+
These are not links.
|
| 21 |
+
|
| 22 |
+
[x
|
| 23 |
+
|
| 24 |
+
[x]:
|
| 25 |
+
|
| 26 |
+
[x]:https://go.dev
|
| 27 |
+
|
| 28 |
+
[x]https://go.dev
|
| 29 |
+
|
| 30 |
+
[x]: surprise://go.dev
|
| 31 |
+
|
| 32 |
+
[x]: surprise!
|
| 33 |
+
|
| 34 |
+
But this is, with a tab (although it's unused).
|
| 35 |
+
|
| 36 |
+
[z]: https://go.dev
|
| 37 |
+
-- text --
|
| 38 |
+
These are not links.
|
| 39 |
+
|
| 40 |
+
[x
|
| 41 |
+
|
| 42 |
+
[x]:
|
| 43 |
+
|
| 44 |
+
[x]:https://go.dev
|
| 45 |
+
|
| 46 |
+
[x]https://go.dev
|
| 47 |
+
|
| 48 |
+
[x]: surprise://go.dev
|
| 49 |
+
|
| 50 |
+
[x]: surprise!
|
| 51 |
+
|
| 52 |
+
But this is, with a tab (although it's unused).
|
| 53 |
+
-- markdown --
|
| 54 |
+
These are not links.
|
| 55 |
+
|
| 56 |
+
\[x
|
| 57 |
+
|
| 58 |
+
\[x]:
|
| 59 |
+
|
| 60 |
+
\[x]:[https://go.dev](https://go.dev)
|
| 61 |
+
|
| 62 |
+
\[x][https://go.dev](https://go.dev)
|
| 63 |
+
|
| 64 |
+
\[x]: surprise://go.dev
|
| 65 |
+
|
| 66 |
+
\[x]: surprise!
|
| 67 |
+
|
| 68 |
+
But this is, with a tab (although it's unused).
|
| 69 |
+
-- html --
|
| 70 |
+
<p>These are not links.
|
| 71 |
+
<p>[x
|
| 72 |
+
<p>[x]:
|
| 73 |
+
<p>[x]:<a href="https://go.dev">https://go.dev</a>
|
| 74 |
+
<p>[x]<a href="https://go.dev">https://go.dev</a>
|
| 75 |
+
<p>[x]: surprise://go.dev
|
| 76 |
+
<p>[x]: surprise!
|
| 77 |
+
<p>But this is, with a tab (although it's unused).
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link5.txt
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
See the [Go home page] and the [pkg
|
| 3 |
+
site].
|
| 4 |
+
|
| 5 |
+
[Go home page]: https://go.dev/
|
| 6 |
+
[pkg site]: https://pkg.go.dev
|
| 7 |
+
[Go home page]: https://duplicate.ignored
|
| 8 |
+
|
| 9 |
+
They're really great!
|
| 10 |
+
|
| 11 |
+
-- gofmt --
|
| 12 |
+
See the [Go home page] and the [pkg
|
| 13 |
+
site].
|
| 14 |
+
|
| 15 |
+
They're really great!
|
| 16 |
+
|
| 17 |
+
[Go home page]: https://go.dev/
|
| 18 |
+
[pkg site]: https://pkg.go.dev
|
| 19 |
+
|
| 20 |
+
[Go home page]: https://duplicate.ignored
|
| 21 |
+
|
| 22 |
+
-- text --
|
| 23 |
+
See the Go home page and the pkg site.
|
| 24 |
+
|
| 25 |
+
They're really great!
|
| 26 |
+
|
| 27 |
+
[Go home page]: https://go.dev/
|
| 28 |
+
[pkg site]: https://pkg.go.dev
|
| 29 |
+
-- markdown --
|
| 30 |
+
See the [Go home page](https://go.dev/) and the [pkg site](https://pkg.go.dev).
|
| 31 |
+
|
| 32 |
+
They're really great!
|
| 33 |
+
-- html --
|
| 34 |
+
<p>See the <a href="https://go.dev/">Go home page</a> and the <a href="https://pkg.go.dev">pkg
|
| 35 |
+
site</a>.
|
| 36 |
+
<p>They're really great!
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link6.txt
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
URLs with punctuation are hard.
|
| 3 |
+
We don't want to consume the end-of-sentence punctuation.
|
| 4 |
+
|
| 5 |
+
For example, https://en.wikipedia.org/wiki/John_Adams_(miniseries).
|
| 6 |
+
And https://example.com/[foo]/bar{.
|
| 7 |
+
And https://example.com/(foo)/bar!
|
| 8 |
+
And https://example.com/{foo}/bar{.
|
| 9 |
+
And https://example.com/)baz{foo}.
|
| 10 |
+
|
| 11 |
+
[And https://example.com/].
|
| 12 |
+
|
| 13 |
+
-- gofmt --
|
| 14 |
+
URLs with punctuation are hard.
|
| 15 |
+
We don't want to consume the end-of-sentence punctuation.
|
| 16 |
+
|
| 17 |
+
For example, https://en.wikipedia.org/wiki/John_Adams_(miniseries).
|
| 18 |
+
And https://example.com/[foo]/bar{.
|
| 19 |
+
And https://example.com/(foo)/bar!
|
| 20 |
+
And https://example.com/{foo}/bar{.
|
| 21 |
+
And https://example.com/)baz{foo}.
|
| 22 |
+
|
| 23 |
+
[And https://example.com/].
|
| 24 |
+
|
| 25 |
+
-- text --
|
| 26 |
+
URLs with punctuation are hard. We don't want to consume the end-of-sentence
|
| 27 |
+
punctuation.
|
| 28 |
+
|
| 29 |
+
For example, https://en.wikipedia.org/wiki/John_Adams_(miniseries).
|
| 30 |
+
And https://example.com/[foo]/bar{. And https://example.com/(foo)/bar! And
|
| 31 |
+
https://example.com/{foo}/bar{. And https://example.com/)baz{foo}.
|
| 32 |
+
|
| 33 |
+
[And https://example.com/].
|
| 34 |
+
|
| 35 |
+
-- markdown --
|
| 36 |
+
URLs with punctuation are hard. We don't want to consume the end-of-sentence punctuation.
|
| 37 |
+
|
| 38 |
+
For example, [https://en.wikipedia.org/wiki/John\_Adams\_(miniseries)](https://en.wikipedia.org/wiki/John_Adams_(miniseries)). And [https://example.com/\[foo]/bar](https://example.com/[foo]/bar){. And [https://example.com/(foo)/bar](https://example.com/(foo)/bar)! And [https://example.com/{foo}/bar](https://example.com/{foo}/bar){. And [https://example.com/](https://example.com/))baz{foo}.
|
| 39 |
+
|
| 40 |
+
\[And [https://example.com/](https://example.com/)].
|
| 41 |
+
|
| 42 |
+
-- html --
|
| 43 |
+
<p>URLs with punctuation are hard.
|
| 44 |
+
We don't want to consume the end-of-sentence punctuation.
|
| 45 |
+
<p>For example, <a href="https://en.wikipedia.org/wiki/John_Adams_(miniseries)">https://en.wikipedia.org/wiki/John_Adams_(miniseries)</a>.
|
| 46 |
+
And <a href="https://example.com/[foo]/bar">https://example.com/[foo]/bar</a>{.
|
| 47 |
+
And <a href="https://example.com/(foo)/bar">https://example.com/(foo)/bar</a>!
|
| 48 |
+
And <a href="https://example.com/{foo}/bar">https://example.com/{foo}/bar</a>{.
|
| 49 |
+
And <a href="https://example.com/">https://example.com/</a>)baz{foo}.
|
| 50 |
+
<p>[And <a href="https://example.com/">https://example.com/</a>].
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/link7.txt
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
[math] is a package but this is not a doc link.
|
| 3 |
+
|
| 4 |
+
[io] is a doc link.
|
| 5 |
+
|
| 6 |
+
[math]: https://example.com
|
| 7 |
+
-- gofmt --
|
| 8 |
+
[math] is a package but this is not a doc link.
|
| 9 |
+
|
| 10 |
+
[io] is a doc link.
|
| 11 |
+
|
| 12 |
+
[math]: https://example.com
|
| 13 |
+
-- text --
|
| 14 |
+
math is a package but this is not a doc link.
|
| 15 |
+
|
| 16 |
+
io is a doc link.
|
| 17 |
+
|
| 18 |
+
[math]: https://example.com
|
| 19 |
+
-- markdown --
|
| 20 |
+
[math](https://example.com) is a package but this is not a doc link.
|
| 21 |
+
|
| 22 |
+
[io](/io) is a doc link.
|
| 23 |
+
-- html --
|
| 24 |
+
<p><a href="https://example.com">math</a> is a package but this is not a doc link.
|
| 25 |
+
<p><a href="/io">io</a> is a doc link.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"DocLinkBaseURL": "https://pkg.go.dev"}
|
| 2 |
+
-- input --
|
| 3 |
+
Did you know?
|
| 4 |
+
|
| 5 |
+
- [encoding/json.Marshal] is a doc link. So is [encoding/json.Unmarshal].
|
| 6 |
+
-- text --
|
| 7 |
+
Did you know?
|
| 8 |
+
|
| 9 |
+
- encoding/json.Marshal is a doc link. So is encoding/json.Unmarshal.
|
| 10 |
+
-- markdown --
|
| 11 |
+
Did you know?
|
| 12 |
+
|
| 13 |
+
- [encoding/json.Marshal](https://pkg.go.dev/encoding/json#Marshal) is a doc link. So is [encoding/json.Unmarshal](https://pkg.go.dev/encoding/json#Unmarshal).
|
| 14 |
+
-- html --
|
| 15 |
+
<p>Did you know?
|
| 16 |
+
<ul>
|
| 17 |
+
<li><a href="https://pkg.go.dev/encoding/json#Marshal">encoding/json.Marshal</a> is a doc link. So is <a href="https://pkg.go.dev/encoding/json#Unmarshal">encoding/json.Unmarshal</a>.
|
| 18 |
+
</ul>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist2.txt
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"DocLinkBaseURL": "https://pkg.go.dev"}
|
| 2 |
+
-- input --
|
| 3 |
+
Did you know?
|
| 4 |
+
|
| 5 |
+
- [testing.T] is one doc link.
|
| 6 |
+
- So is [testing.M].
|
| 7 |
+
- So is [testing.B].
|
| 8 |
+
This is the same list paragraph.
|
| 9 |
+
|
| 10 |
+
There is [testing.PB] in this list item, too!
|
| 11 |
+
-- text --
|
| 12 |
+
Did you know?
|
| 13 |
+
|
| 14 |
+
- testing.T is one doc link.
|
| 15 |
+
|
| 16 |
+
- So is testing.M.
|
| 17 |
+
|
| 18 |
+
- So is testing.B. This is the same list paragraph.
|
| 19 |
+
|
| 20 |
+
There is testing.PB in this list item, too!
|
| 21 |
+
-- markdown --
|
| 22 |
+
Did you know?
|
| 23 |
+
|
| 24 |
+
- [testing.T](https://pkg.go.dev/testing#T) is one doc link.
|
| 25 |
+
|
| 26 |
+
- So is [testing.M](https://pkg.go.dev/testing#M).
|
| 27 |
+
|
| 28 |
+
- So is [testing.B](https://pkg.go.dev/testing#B). This is the same list paragraph.
|
| 29 |
+
|
| 30 |
+
There is [testing.PB](https://pkg.go.dev/testing#PB) in this list item, too!
|
| 31 |
+
-- html --
|
| 32 |
+
<p>Did you know?
|
| 33 |
+
<ul>
|
| 34 |
+
<li><p><a href="https://pkg.go.dev/testing#T">testing.T</a> is one doc link.
|
| 35 |
+
<li><p>So is <a href="https://pkg.go.dev/testing#M">testing.M</a>.
|
| 36 |
+
<li><p>So is <a href="https://pkg.go.dev/testing#B">testing.B</a>.
|
| 37 |
+
This is the same list paragraph.
|
| 38 |
+
<p>There is <a href="https://pkg.go.dev/testing#PB">testing.PB</a> in this list item, too!
|
| 39 |
+
</ul>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist3.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"DocLinkBaseURL": "https://pkg.go.dev"}
|
| 2 |
+
-- input --
|
| 3 |
+
Cool things:
|
| 4 |
+
|
| 5 |
+
- Foo
|
| 6 |
+
- [Go]
|
| 7 |
+
- Bar
|
| 8 |
+
|
| 9 |
+
[Go]: https://go.dev/
|
| 10 |
+
-- text --
|
| 11 |
+
Cool things:
|
| 12 |
+
|
| 13 |
+
- Foo
|
| 14 |
+
- Go
|
| 15 |
+
- Bar
|
| 16 |
+
|
| 17 |
+
[Go]: https://go.dev/
|
| 18 |
+
-- markdown --
|
| 19 |
+
Cool things:
|
| 20 |
+
|
| 21 |
+
- Foo
|
| 22 |
+
- [Go](https://go.dev/)
|
| 23 |
+
- Bar
|
| 24 |
+
|
| 25 |
+
-- html --
|
| 26 |
+
<p>Cool things:
|
| 27 |
+
<ul>
|
| 28 |
+
<li>Foo
|
| 29 |
+
<li><a href="https://go.dev/">Go</a>
|
| 30 |
+
<li>Bar
|
| 31 |
+
</ul>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/linklist4.txt
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"DocLinkBaseURL": "https://pkg.go.dev"}
|
| 2 |
+
-- input --
|
| 3 |
+
Cool things:
|
| 4 |
+
|
| 5 |
+
- Foo
|
| 6 |
+
- [Go] is great
|
| 7 |
+
|
| 8 |
+
[Go]: https://go.dev/
|
| 9 |
+
- Bar
|
| 10 |
+
|
| 11 |
+
-- text --
|
| 12 |
+
Cool things:
|
| 13 |
+
|
| 14 |
+
- Foo
|
| 15 |
+
|
| 16 |
+
- Go is great
|
| 17 |
+
|
| 18 |
+
- Bar
|
| 19 |
+
|
| 20 |
+
[Go]: https://go.dev/
|
| 21 |
+
-- markdown --
|
| 22 |
+
Cool things:
|
| 23 |
+
|
| 24 |
+
- Foo
|
| 25 |
+
|
| 26 |
+
- [Go](https://go.dev/) is great
|
| 27 |
+
|
| 28 |
+
- Bar
|
| 29 |
+
|
| 30 |
+
-- html --
|
| 31 |
+
<p>Cool things:
|
| 32 |
+
<ul>
|
| 33 |
+
<li><p>Foo
|
| 34 |
+
<li><p><a href="https://go.dev/">Go</a> is great
|
| 35 |
+
<li><p>Bar
|
| 36 |
+
</ul>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list.txt
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
- Not a list.
|
| 4 |
+
- Here is the list.
|
| 5 |
+
• Using multiple bullets.
|
| 6 |
+
* Indentation does not matter.
|
| 7 |
+
+ Lots of bullets.
|
| 8 |
+
More text.
|
| 9 |
+
|
| 10 |
+
-- gofmt --
|
| 11 |
+
Text.
|
| 12 |
+
- Not a list.
|
| 13 |
+
- Here is the list.
|
| 14 |
+
- Using multiple bullets.
|
| 15 |
+
- Indentation does not matter.
|
| 16 |
+
- Lots of bullets.
|
| 17 |
+
|
| 18 |
+
More text.
|
| 19 |
+
|
| 20 |
+
-- text --
|
| 21 |
+
Text. - Not a list.
|
| 22 |
+
- Here is the list.
|
| 23 |
+
- Using multiple bullets.
|
| 24 |
+
- Indentation does not matter.
|
| 25 |
+
- Lots of bullets.
|
| 26 |
+
|
| 27 |
+
More text.
|
| 28 |
+
|
| 29 |
+
-- markdown --
|
| 30 |
+
Text. - Not a list.
|
| 31 |
+
|
| 32 |
+
- Here is the list.
|
| 33 |
+
- Using multiple bullets.
|
| 34 |
+
- Indentation does not matter.
|
| 35 |
+
- Lots of bullets.
|
| 36 |
+
|
| 37 |
+
More text.
|
| 38 |
+
|
| 39 |
+
-- html --
|
| 40 |
+
<p>Text.
|
| 41 |
+
- Not a list.
|
| 42 |
+
<ul>
|
| 43 |
+
<li>Here is the list.
|
| 44 |
+
<li>Using multiple bullets.
|
| 45 |
+
<li>Indentation does not matter.
|
| 46 |
+
<li>Lots of bullets.
|
| 47 |
+
</ul>
|
| 48 |
+
<p>More text.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list10.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
|
| 3 |
+
1. This list
|
| 4 |
+
2. Starts the comment
|
| 5 |
+
3. And also has a blank line before it.
|
| 6 |
+
|
| 7 |
+
All of which is a little weird.
|
| 8 |
+
-- gofmt --
|
| 9 |
+
1. This list
|
| 10 |
+
2. Starts the comment
|
| 11 |
+
3. And also has a blank line before it.
|
| 12 |
+
|
| 13 |
+
All of which is a little weird.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list2.txt
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
1. Uno
|
| 4 |
+
2) Dos
|
| 5 |
+
3. Tres
|
| 6 |
+
5. Cinco
|
| 7 |
+
7. Siete
|
| 8 |
+
11. Once
|
| 9 |
+
12. Doce
|
| 10 |
+
13. Trece.
|
| 11 |
+
|
| 12 |
+
-- gofmt --
|
| 13 |
+
Text.
|
| 14 |
+
1. Uno
|
| 15 |
+
2. Dos
|
| 16 |
+
3. Tres
|
| 17 |
+
5. Cinco
|
| 18 |
+
7. Siete
|
| 19 |
+
11. Once
|
| 20 |
+
12. Doce
|
| 21 |
+
13. Trece.
|
| 22 |
+
|
| 23 |
+
-- text --
|
| 24 |
+
Text.
|
| 25 |
+
1. Uno
|
| 26 |
+
2. Dos
|
| 27 |
+
3. Tres
|
| 28 |
+
5. Cinco
|
| 29 |
+
7. Siete
|
| 30 |
+
11. Once
|
| 31 |
+
12. Doce
|
| 32 |
+
13. Trece.
|
| 33 |
+
|
| 34 |
+
-- markdown --
|
| 35 |
+
Text.
|
| 36 |
+
|
| 37 |
+
1. Uno
|
| 38 |
+
2. Dos
|
| 39 |
+
3. Tres
|
| 40 |
+
5. Cinco
|
| 41 |
+
7. Siete
|
| 42 |
+
11. Once
|
| 43 |
+
12. Doce
|
| 44 |
+
13. Trece.
|
| 45 |
+
|
| 46 |
+
-- html --
|
| 47 |
+
<p>Text.
|
| 48 |
+
<ol>
|
| 49 |
+
<li>Uno
|
| 50 |
+
<li>Dos
|
| 51 |
+
<li>Tres
|
| 52 |
+
<li value="5">Cinco
|
| 53 |
+
<li value="7">Siete
|
| 54 |
+
<li value="11">Once
|
| 55 |
+
<li>Doce
|
| 56 |
+
<li>Trece.
|
| 57 |
+
</ol>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list3.txt
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
|
| 4 |
+
1. Uno
|
| 5 |
+
1. Dos
|
| 6 |
+
1. Tres
|
| 7 |
+
1. Quatro
|
| 8 |
+
|
| 9 |
+
-- gofmt --
|
| 10 |
+
Text.
|
| 11 |
+
|
| 12 |
+
1. Uno
|
| 13 |
+
1. Dos
|
| 14 |
+
1. Tres
|
| 15 |
+
1. Quatro
|
| 16 |
+
|
| 17 |
+
-- markdown --
|
| 18 |
+
Text.
|
| 19 |
+
|
| 20 |
+
1. Uno
|
| 21 |
+
1. Dos
|
| 22 |
+
1. Tres
|
| 23 |
+
1. Quatro
|
| 24 |
+
|
| 25 |
+
-- html --
|
| 26 |
+
<p>Text.
|
| 27 |
+
<ol>
|
| 28 |
+
<li>Uno
|
| 29 |
+
<li value="1">Dos
|
| 30 |
+
<li value="1">Tres
|
| 31 |
+
<li value="1">Quatro
|
| 32 |
+
</ol>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list4.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
1. List
|
| 4 |
+
2. Not indented, not a list.
|
| 5 |
+
3. Another list.
|
| 6 |
+
|
| 7 |
+
-- gofmt --
|
| 8 |
+
Text.
|
| 9 |
+
1. List
|
| 10 |
+
|
| 11 |
+
2. Not indented, not a list.
|
| 12 |
+
3. Another list.
|
| 13 |
+
|
| 14 |
+
-- text --
|
| 15 |
+
Text.
|
| 16 |
+
1. List
|
| 17 |
+
|
| 18 |
+
2. Not indented, not a list.
|
| 19 |
+
3. Another list.
|
| 20 |
+
|
| 21 |
+
-- markdown --
|
| 22 |
+
Text.
|
| 23 |
+
|
| 24 |
+
1. List
|
| 25 |
+
|
| 26 |
+
2\. Not indented, not a list.
|
| 27 |
+
|
| 28 |
+
3. Another list.
|
| 29 |
+
|
| 30 |
+
-- html --
|
| 31 |
+
<p>Text.
|
| 32 |
+
<ol>
|
| 33 |
+
<li>List
|
| 34 |
+
</ol>
|
| 35 |
+
<p>2. Not indented, not a list.
|
| 36 |
+
<ol>
|
| 37 |
+
<li value="3">Another list.
|
| 38 |
+
</ol>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list5.txt
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
|
| 4 |
+
1. One
|
| 5 |
+
999999999999999999999. Big
|
| 6 |
+
1000000000000000000000. Bigger
|
| 7 |
+
1000000000000000000001. Biggest
|
| 8 |
+
|
| 9 |
+
-- gofmt --
|
| 10 |
+
Text.
|
| 11 |
+
|
| 12 |
+
1. One
|
| 13 |
+
999999999999999999999. Big
|
| 14 |
+
1000000000000000000000. Bigger
|
| 15 |
+
1000000000000000000001. Biggest
|
| 16 |
+
|
| 17 |
+
-- text --
|
| 18 |
+
Text.
|
| 19 |
+
|
| 20 |
+
1. One
|
| 21 |
+
999999999999999999999. Big
|
| 22 |
+
1000000000000000000000. Bigger
|
| 23 |
+
1000000000000000000001. Biggest
|
| 24 |
+
|
| 25 |
+
-- markdown --
|
| 26 |
+
Text.
|
| 27 |
+
|
| 28 |
+
1. One
|
| 29 |
+
999999999999999999999. Big
|
| 30 |
+
1000000000000000000000. Bigger
|
| 31 |
+
1000000000000000000001. Biggest
|
| 32 |
+
|
| 33 |
+
-- html --
|
| 34 |
+
<p>Text.
|
| 35 |
+
<ol>
|
| 36 |
+
<li>One
|
| 37 |
+
<li value="999999999999999999999">Big
|
| 38 |
+
<li>Bigger
|
| 39 |
+
<li>Biggest
|
| 40 |
+
</ol>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list6.txt
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
- List immediately after.
|
| 4 |
+
- Another.
|
| 5 |
+
|
| 6 |
+
More text.
|
| 7 |
+
|
| 8 |
+
- List after blank line.
|
| 9 |
+
- Another.
|
| 10 |
+
|
| 11 |
+
Even more text.
|
| 12 |
+
- List immediately after.
|
| 13 |
+
|
| 14 |
+
- Blank line between items.
|
| 15 |
+
|
| 16 |
+
Yet more text.
|
| 17 |
+
|
| 18 |
+
- Another list after blank line.
|
| 19 |
+
|
| 20 |
+
- Blank line between items.
|
| 21 |
+
|
| 22 |
+
Still more text.
|
| 23 |
+
- One list item.
|
| 24 |
+
|
| 25 |
+
Multiple paragraphs.
|
| 26 |
+
-- dump --
|
| 27 |
+
Doc
|
| 28 |
+
Paragraph
|
| 29 |
+
Plain "Text."
|
| 30 |
+
List ForceBlankBefore=false ForceBlankBetween=false
|
| 31 |
+
Item Number=""
|
| 32 |
+
Paragraph
|
| 33 |
+
Plain "List immediately after."
|
| 34 |
+
Item Number=""
|
| 35 |
+
Paragraph
|
| 36 |
+
Plain "Another."
|
| 37 |
+
Paragraph
|
| 38 |
+
Plain "More text."
|
| 39 |
+
List ForceBlankBefore=true ForceBlankBetween=false
|
| 40 |
+
Item Number=""
|
| 41 |
+
Paragraph
|
| 42 |
+
Plain "List after blank line."
|
| 43 |
+
Item Number=""
|
| 44 |
+
Paragraph
|
| 45 |
+
Plain "Another."
|
| 46 |
+
Paragraph
|
| 47 |
+
Plain "Even more text."
|
| 48 |
+
List ForceBlankBefore=false ForceBlankBetween=true
|
| 49 |
+
Item Number=""
|
| 50 |
+
Paragraph
|
| 51 |
+
Plain "List immediately after."
|
| 52 |
+
Item Number=""
|
| 53 |
+
Paragraph
|
| 54 |
+
Plain "Blank line between items."
|
| 55 |
+
Paragraph
|
| 56 |
+
Plain "Yet more text."
|
| 57 |
+
List ForceBlankBefore=true ForceBlankBetween=true
|
| 58 |
+
Item Number=""
|
| 59 |
+
Paragraph
|
| 60 |
+
Plain "Another list after blank line."
|
| 61 |
+
Item Number=""
|
| 62 |
+
Paragraph
|
| 63 |
+
Plain "Blank line between items."
|
| 64 |
+
Paragraph
|
| 65 |
+
Plain "Still more text."
|
| 66 |
+
List ForceBlankBefore=false ForceBlankBetween=true
|
| 67 |
+
Item Number=""
|
| 68 |
+
Paragraph
|
| 69 |
+
Plain "One list item."
|
| 70 |
+
Paragraph
|
| 71 |
+
Plain "Multiple paragraphs."
|
| 72 |
+
|
| 73 |
+
-- gofmt --
|
| 74 |
+
Text.
|
| 75 |
+
- List immediately after.
|
| 76 |
+
- Another.
|
| 77 |
+
|
| 78 |
+
More text.
|
| 79 |
+
|
| 80 |
+
- List after blank line.
|
| 81 |
+
- Another.
|
| 82 |
+
|
| 83 |
+
Even more text.
|
| 84 |
+
|
| 85 |
+
- List immediately after.
|
| 86 |
+
|
| 87 |
+
- Blank line between items.
|
| 88 |
+
|
| 89 |
+
Yet more text.
|
| 90 |
+
|
| 91 |
+
- Another list after blank line.
|
| 92 |
+
|
| 93 |
+
- Blank line between items.
|
| 94 |
+
|
| 95 |
+
Still more text.
|
| 96 |
+
|
| 97 |
+
- One list item.
|
| 98 |
+
|
| 99 |
+
Multiple paragraphs.
|
| 100 |
+
|
| 101 |
+
-- markdown --
|
| 102 |
+
Text.
|
| 103 |
+
|
| 104 |
+
- List immediately after.
|
| 105 |
+
- Another.
|
| 106 |
+
|
| 107 |
+
More text.
|
| 108 |
+
|
| 109 |
+
- List after blank line.
|
| 110 |
+
- Another.
|
| 111 |
+
|
| 112 |
+
Even more text.
|
| 113 |
+
|
| 114 |
+
- List immediately after.
|
| 115 |
+
|
| 116 |
+
- Blank line between items.
|
| 117 |
+
|
| 118 |
+
Yet more text.
|
| 119 |
+
|
| 120 |
+
- Another list after blank line.
|
| 121 |
+
|
| 122 |
+
- Blank line between items.
|
| 123 |
+
|
| 124 |
+
Still more text.
|
| 125 |
+
|
| 126 |
+
- One list item.
|
| 127 |
+
|
| 128 |
+
Multiple paragraphs.
|
| 129 |
+
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list7.txt
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Almost list markers (but not quite):
|
| 3 |
+
|
| 4 |
+
-
|
| 5 |
+
|
| 6 |
+
❦
|
| 7 |
+
|
| 8 |
+
- $
|
| 9 |
+
|
| 10 |
+
❦
|
| 11 |
+
|
| 12 |
+
- $
|
| 13 |
+
|
| 14 |
+
❦
|
| 15 |
+
|
| 16 |
+
$
|
| 17 |
+
$
|
| 18 |
+
|
| 19 |
+
❦
|
| 20 |
+
|
| 21 |
+
1! List.
|
| 22 |
+
|
| 23 |
+
❦
|
| 24 |
+
-- gofmt --
|
| 25 |
+
Almost list markers (but not quite):
|
| 26 |
+
|
| 27 |
+
-
|
| 28 |
+
|
| 29 |
+
❦
|
| 30 |
+
|
| 31 |
+
- $
|
| 32 |
+
|
| 33 |
+
❦
|
| 34 |
+
|
| 35 |
+
- $
|
| 36 |
+
|
| 37 |
+
❦
|
| 38 |
+
|
| 39 |
+
❦
|
| 40 |
+
|
| 41 |
+
1! List.
|
| 42 |
+
|
| 43 |
+
❦
|
| 44 |
+
-- text --
|
| 45 |
+
Almost list markers (but not quite):
|
| 46 |
+
|
| 47 |
+
-
|
| 48 |
+
|
| 49 |
+
❦
|
| 50 |
+
|
| 51 |
+
-
|
| 52 |
+
|
| 53 |
+
❦
|
| 54 |
+
|
| 55 |
+
-
|
| 56 |
+
|
| 57 |
+
❦
|
| 58 |
+
|
| 59 |
+
❦
|
| 60 |
+
|
| 61 |
+
1! List.
|
| 62 |
+
|
| 63 |
+
❦
|
| 64 |
+
-- markdown --
|
| 65 |
+
Almost list markers (but not quite):
|
| 66 |
+
|
| 67 |
+
-
|
| 68 |
+
|
| 69 |
+
❦
|
| 70 |
+
|
| 71 |
+
- $
|
| 72 |
+
|
| 73 |
+
❦
|
| 74 |
+
|
| 75 |
+
- $
|
| 76 |
+
|
| 77 |
+
❦
|
| 78 |
+
|
| 79 |
+
❦
|
| 80 |
+
|
| 81 |
+
1! List.
|
| 82 |
+
|
| 83 |
+
❦
|
| 84 |
+
-- html --
|
| 85 |
+
<p>Almost list markers (but not quite):
|
| 86 |
+
<pre>-
|
| 87 |
+
</pre>
|
| 88 |
+
<p>❦
|
| 89 |
+
<pre>- $
|
| 90 |
+
</pre>
|
| 91 |
+
<p>❦
|
| 92 |
+
<pre>- $
|
| 93 |
+
</pre>
|
| 94 |
+
<p>❦
|
| 95 |
+
<p>❦
|
| 96 |
+
<pre>1! List.
|
| 97 |
+
</pre>
|
| 98 |
+
<p>❦
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list8.txt
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Loose lists.
|
| 3 |
+
- A
|
| 4 |
+
|
| 5 |
+
B
|
| 6 |
+
- C
|
| 7 |
+
D
|
| 8 |
+
- E
|
| 9 |
+
- F
|
| 10 |
+
-- gofmt --
|
| 11 |
+
Loose lists.
|
| 12 |
+
|
| 13 |
+
- A
|
| 14 |
+
|
| 15 |
+
B
|
| 16 |
+
|
| 17 |
+
- C
|
| 18 |
+
D
|
| 19 |
+
|
| 20 |
+
- E
|
| 21 |
+
|
| 22 |
+
- F
|
| 23 |
+
-- text --
|
| 24 |
+
Loose lists.
|
| 25 |
+
|
| 26 |
+
- A
|
| 27 |
+
|
| 28 |
+
B
|
| 29 |
+
|
| 30 |
+
- C D
|
| 31 |
+
|
| 32 |
+
- E
|
| 33 |
+
|
| 34 |
+
- F
|
| 35 |
+
-- markdown --
|
| 36 |
+
Loose lists.
|
| 37 |
+
|
| 38 |
+
- A
|
| 39 |
+
|
| 40 |
+
B
|
| 41 |
+
|
| 42 |
+
- C D
|
| 43 |
+
|
| 44 |
+
- E
|
| 45 |
+
|
| 46 |
+
- F
|
| 47 |
+
-- html --
|
| 48 |
+
<p>Loose lists.
|
| 49 |
+
<ul>
|
| 50 |
+
<li><p>A
|
| 51 |
+
<p>B
|
| 52 |
+
<li><p>C
|
| 53 |
+
D
|
| 54 |
+
<li><p>E
|
| 55 |
+
<li><p>F
|
| 56 |
+
</ul>
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/list9.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Text.
|
| 3 |
+
|
| 4 |
+
1. Not a list
|
| 5 |
+
2. because it is
|
| 6 |
+
3. unindented.
|
| 7 |
+
|
| 8 |
+
4. This one
|
| 9 |
+
is a list
|
| 10 |
+
because of the indented text.
|
| 11 |
+
5. More wrapped
|
| 12 |
+
items.
|
| 13 |
+
6. And unwrapped.
|
| 14 |
+
|
| 15 |
+
7. The blank line stops the heuristic.
|
| 16 |
+
-- gofmt --
|
| 17 |
+
Text.
|
| 18 |
+
|
| 19 |
+
1. Not a list
|
| 20 |
+
2. because it is
|
| 21 |
+
3. unindented.
|
| 22 |
+
|
| 23 |
+
4. This one
|
| 24 |
+
is a list
|
| 25 |
+
because of the indented text.
|
| 26 |
+
5. More wrapped
|
| 27 |
+
items.
|
| 28 |
+
6. And unwrapped.
|
| 29 |
+
|
| 30 |
+
7. The blank line stops the heuristic.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/para.txt
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Hello, world.
|
| 3 |
+
This is a paragraph.
|
| 4 |
+
|
| 5 |
+
-- gofmt --
|
| 6 |
+
Hello, world.
|
| 7 |
+
This is a paragraph.
|
| 8 |
+
|
| 9 |
+
-- text --
|
| 10 |
+
Hello, world. This is a paragraph.
|
| 11 |
+
|
| 12 |
+
-- markdown --
|
| 13 |
+
Hello, world. This is a paragraph.
|
| 14 |
+
|
| 15 |
+
-- html --
|
| 16 |
+
<p>Hello, world.
|
| 17 |
+
This is a paragraph.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/quote.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Doubled single quotes like `` and '' turn into Unicode double quotes,
|
| 3 |
+
but single quotes ` and ' do not.
|
| 4 |
+
Misplaced markdown fences ``` do not either.
|
| 5 |
+
-- gofmt --
|
| 6 |
+
Doubled single quotes like “ and ” turn into Unicode double quotes,
|
| 7 |
+
but single quotes ` and ' do not.
|
| 8 |
+
Misplaced markdown fences ``` do not either.
|
| 9 |
+
-- text --
|
| 10 |
+
Doubled single quotes like “ and ” turn into Unicode double quotes, but single
|
| 11 |
+
quotes ` and ' do not. Misplaced markdown fences ``` do not either.
|
| 12 |
+
-- html --
|
| 13 |
+
<p>Doubled single quotes like “ and ” turn into Unicode double quotes,
|
| 14 |
+
but single quotes ` and ' do not.
|
| 15 |
+
Misplaced markdown fences ``` do not either.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text.txt
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"TextPrefix":"|", "TextCodePrefix": "@"}
|
| 2 |
+
-- input --
|
| 3 |
+
Hello, world
|
| 4 |
+
Code block here.
|
| 5 |
+
More text.
|
| 6 |
+
Tight list
|
| 7 |
+
- one
|
| 8 |
+
- two
|
| 9 |
+
- three
|
| 10 |
+
Loose list
|
| 11 |
+
- one
|
| 12 |
+
|
| 13 |
+
- two
|
| 14 |
+
|
| 15 |
+
- three
|
| 16 |
+
|
| 17 |
+
# Heading
|
| 18 |
+
|
| 19 |
+
More text.
|
| 20 |
+
-- gofmt --
|
| 21 |
+
Hello, world
|
| 22 |
+
|
| 23 |
+
Code block here.
|
| 24 |
+
|
| 25 |
+
More text.
|
| 26 |
+
Tight list
|
| 27 |
+
- one
|
| 28 |
+
- two
|
| 29 |
+
- three
|
| 30 |
+
|
| 31 |
+
Loose list
|
| 32 |
+
|
| 33 |
+
- one
|
| 34 |
+
|
| 35 |
+
- two
|
| 36 |
+
|
| 37 |
+
- three
|
| 38 |
+
|
| 39 |
+
# Heading
|
| 40 |
+
|
| 41 |
+
More text.
|
| 42 |
+
-- text --
|
| 43 |
+
|Hello, world
|
| 44 |
+
|
|
| 45 |
+
@Code block here.
|
| 46 |
+
|
|
| 47 |
+
|More text. Tight list
|
| 48 |
+
| - one
|
| 49 |
+
| - two
|
| 50 |
+
| - three
|
| 51 |
+
|
|
| 52 |
+
|Loose list
|
| 53 |
+
|
|
| 54 |
+
| - one
|
| 55 |
+
|
|
| 56 |
+
| - two
|
| 57 |
+
|
|
| 58 |
+
| - three
|
| 59 |
+
|
|
| 60 |
+
|# Heading
|
| 61 |
+
|
|
| 62 |
+
|More text.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text2.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"TextWidth": -1}
|
| 2 |
+
-- input --
|
| 3 |
+
Package gob manages streams of gobs - binary values exchanged between an
|
| 4 |
+
Encoder (transmitter) and a Decoder (receiver). A typical use is
|
| 5 |
+
transporting arguments and results of remote procedure calls (RPCs) such as
|
| 6 |
+
those provided by package "net/rpc".
|
| 7 |
+
|
| 8 |
+
The implementation compiles a custom codec for each data type in the stream
|
| 9 |
+
and is most efficient when a single Encoder is used to transmit a stream of
|
| 10 |
+
values, amortizing the cost of compilation.
|
| 11 |
+
-- text --
|
| 12 |
+
Package gob manages streams of gobs - binary values exchanged between an Encoder (transmitter) and a Decoder (receiver). A typical use is transporting arguments and results of remote procedure calls (RPCs) such as those provided by package "net/rpc".
|
| 13 |
+
|
| 14 |
+
The implementation compiles a custom codec for each data type in the stream and is most efficient when a single Encoder is used to transmit a stream of values, amortizing the cost of compilation.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text3.txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"TextWidth": 30}
|
| 2 |
+
-- input --
|
| 3 |
+
Package gob manages streams of gobs - binary values exchanged between an
|
| 4 |
+
Encoder (transmitter) and a Decoder (receiver). A typical use is
|
| 5 |
+
transporting arguments and results of remote procedure calls (RPCs) such as
|
| 6 |
+
those provided by package "net/rpc".
|
| 7 |
+
|
| 8 |
+
The implementation compiles a custom codec for each data type in the stream
|
| 9 |
+
and is most efficient when a single Encoder is used to transmit a stream of
|
| 10 |
+
values, amortizing the cost of compilation.
|
| 11 |
+
-- text --
|
| 12 |
+
Package gob manages streams
|
| 13 |
+
of gobs - binary values
|
| 14 |
+
exchanged between an Encoder
|
| 15 |
+
(transmitter) and a Decoder
|
| 16 |
+
(receiver). A typical use is
|
| 17 |
+
transporting arguments and
|
| 18 |
+
results of remote procedure
|
| 19 |
+
calls (RPCs) such as those
|
| 20 |
+
provided by package "net/rpc".
|
| 21 |
+
|
| 22 |
+
The implementation compiles
|
| 23 |
+
a custom codec for each data
|
| 24 |
+
type in the stream and is
|
| 25 |
+
most efficient when a single
|
| 26 |
+
Encoder is used to transmit a
|
| 27 |
+
stream of values, amortizing
|
| 28 |
+
the cost of compilation.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text4.txt
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"TextWidth": 29}
|
| 2 |
+
-- input --
|
| 3 |
+
Package gob manages streams of gobs - binary values exchanged between an
|
| 4 |
+
Encoder (transmitter) and a Decoder (receiver). A typical use is
|
| 5 |
+
transporting arguments and results of remote procedure calls (RPCs) such as
|
| 6 |
+
those provided by package "net/rpc".
|
| 7 |
+
|
| 8 |
+
The implementation compiles a custom codec for each data type in the stream
|
| 9 |
+
and is most efficient when a single Encoder is used to transmit a stream of
|
| 10 |
+
values, amortizing the cost of compilation.
|
| 11 |
+
-- text --
|
| 12 |
+
Package gob manages streams
|
| 13 |
+
of gobs - binary values
|
| 14 |
+
exchanged between an Encoder
|
| 15 |
+
(transmitter) and a Decoder
|
| 16 |
+
(receiver). A typical use
|
| 17 |
+
is transporting arguments
|
| 18 |
+
and results of remote
|
| 19 |
+
procedure calls (RPCs) such
|
| 20 |
+
as those provided by package
|
| 21 |
+
"net/rpc".
|
| 22 |
+
|
| 23 |
+
The implementation compiles
|
| 24 |
+
a custom codec for each data
|
| 25 |
+
type in the stream and is
|
| 26 |
+
most efficient when a single
|
| 27 |
+
Encoder is used to transmit a
|
| 28 |
+
stream of values, amortizing
|
| 29 |
+
the cost of compilation.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text5.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"TextWidth": 20}
|
| 2 |
+
-- input --
|
| 3 |
+
Package gob manages streams of gobs - binary values exchanged between an
|
| 4 |
+
Encoder (transmitter) and a Decoder (receiver). A typical use is
|
| 5 |
+
transporting arguments and results of remote procedure calls (RPCs) such as
|
| 6 |
+
those provided by package "net/rpc".
|
| 7 |
+
|
| 8 |
+
The implementation compiles a custom codec for each data type in the stream
|
| 9 |
+
and is most efficient when a single Encoder is used to transmit a stream of
|
| 10 |
+
values, amortizing the cost of compilation.
|
| 11 |
+
-- text --
|
| 12 |
+
Package gob
|
| 13 |
+
manages streams
|
| 14 |
+
of gobs - binary
|
| 15 |
+
values exchanged
|
| 16 |
+
between an Encoder
|
| 17 |
+
(transmitter) and a
|
| 18 |
+
Decoder (receiver).
|
| 19 |
+
A typical use
|
| 20 |
+
is transporting
|
| 21 |
+
arguments and
|
| 22 |
+
results of remote
|
| 23 |
+
procedure calls
|
| 24 |
+
(RPCs) such as those
|
| 25 |
+
provided by package
|
| 26 |
+
"net/rpc".
|
| 27 |
+
|
| 28 |
+
The implementation
|
| 29 |
+
compiles a custom
|
| 30 |
+
codec for each
|
| 31 |
+
data type in the
|
| 32 |
+
stream and is most
|
| 33 |
+
efficient when a
|
| 34 |
+
single Encoder is
|
| 35 |
+
used to transmit a
|
| 36 |
+
stream of values,
|
| 37 |
+
amortizing the cost
|
| 38 |
+
of compilation.
|
platform/dbops/binaries/go/go/src/go/doc/comment/testdata/text6.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- input --
|
| 2 |
+
Package gob manages streams of gobs - binary values exchanged between an
|
| 3 |
+
Encoder (transmitter) and a Decoder (receiver). A typical use is
|
| 4 |
+
transporting arguments and results of remote procedure calls (RPCs) such as
|
| 5 |
+
those provided by package "net/rpc".
|
| 6 |
+
|
| 7 |
+
The implementation compiles a custom codec for each data type in the stream
|
| 8 |
+
and is most efficient when a single Encoder is used to transmit a stream of
|
| 9 |
+
values, amortizing the cost of compilation.
|
| 10 |
+
-- text --
|
| 11 |
+
Package gob manages streams of gobs - binary values exchanged between an Encoder
|
| 12 |
+
(transmitter) and a Decoder (receiver). A typical use is transporting arguments
|
| 13 |
+
and results of remote procedure calls (RPCs) such as those provided by package
|
| 14 |
+
"net/rpc".
|
| 15 |
+
|
| 16 |
+
The implementation compiles a custom codec for each data type in the stream and
|
| 17 |
+
is most efficient when a single Encoder is used to transmit a stream of values,
|
| 18 |
+
amortizing the cost of compilation.
|