]> Cypherpunks repositories - gostls13.git/commit
go/doc/comment: add paragraph parsing and test framework
authorRuss Cox <rsc@golang.org>
Sun, 3 Apr 2022 12:15:40 +0000 (08:15 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Apr 2022 16:31:37 +0000 (16:31 +0000)
commit98b17892a080a42378c9c3551dc5bb273e7ec2d3
tree07b8befca97f82a5111c8cf6b11222cc09014e3a
parent7575811c2b7c4a4a06a1e4b93c2473dffbb8bdcf
go/doc/comment: add paragraph parsing and test framework

[This CL is part of a sequence implementing the proposal #51082.
The design doc is at https://go.dev/s/godocfmt-design.]

Implement parsing of plain text doc paragraphs,
as well as a txtar-based test framework. Subsequent CLs will
implement the rest of the possible markup.

For #51082.

Change-Id: I449aac69b44089f241fde8050ac134e17cb25116
Reviewed-on: https://go-review.googlesource.com/c/go/+/397278
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
api/next/51082.txt
src/go/doc/comment/parse.go
src/go/doc/comment/testdata/hello.txt [new file with mode: 0644]
src/go/doc/comment/testdata_test.go [new file with mode: 0644]