]> Cypherpunks repositories - gostls13.git/commit
go/doc/comment: add Printer and basic comment printing
authorRuss Cox <rsc@golang.org>
Sun, 3 Apr 2022 12:20:31 +0000 (08:20 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Apr 2022 16:31:40 +0000 (16:31 +0000)
commit6130b88130ac6954f557e4737d88419d063b32c3
tree7b58caaf10e5fa632abf2a9f83077602cdff7a67
parent98b17892a080a42378c9c3551dc5bb273e7ec2d3
go/doc/comment: add Printer and basic comment printing

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

Implement printing of plain text doc paragraphs.

For #51082.

Change-Id: Ieff0af64a900f566bfc833c3b5706488f1444798
Reviewed-on: https://go-review.googlesource.com/c/go/+/397279
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/html.go [new file with mode: 0644]
src/go/doc/comment/markdown.go [new file with mode: 0644]
src/go/doc/comment/print.go [new file with mode: 0644]
src/go/doc/comment/testdata/blank.txt [new file with mode: 0644]
src/go/doc/comment/testdata/escape.txt [new file with mode: 0644]
src/go/doc/comment/testdata/hello.txt
src/go/doc/comment/testdata_test.go
src/go/doc/comment/text.go [new file with mode: 0644]