From 46b63f3ffddc9657bc2c45fb116dc49c0b381a34 Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Fri, 27 Mar 2026 16:00:47 -0400 Subject: internal/api: add htmlRenderer Change-Id: Ib25c913ce7641dea58e2eefb6d65f5cc7dec813a Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/760820 Reviewed-by: Hyang-Ah Hana Kim Reviewed-by: Ethan Lee kokoro-CI: kokoro LUCI-TryBot-Result: Go LUCI --- internal/api/testdata/html.golden | 75 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 internal/api/testdata/html.golden (limited to 'internal/api/testdata') diff --git a/internal/api/testdata/html.golden b/internal/api/testdata/html.golden new file mode 100644 index 00000000..d77b329c --- /dev/null +++ b/internal/api/testdata/html.golden @@ -0,0 +1,75 @@ +

package pkg

+ +

Package pkg has every form of declaration. +

Heading

+

Search Google for details. +

+ + +

Constants

+ +
const (
+	X = 1
+	Y = 2
+)
+

Several constants. + +

const C = 1
+

C is a shorthand for 1. + +

Variables

+ +
var V = 2
+

V is a variable. + +

Functions

+ +
func Add(x int) int
+

Add adds 1 to x. + +

func F()
+

F is a function. + +

Types

+ +
type A int
+ +
type B bool
+ +
type I1 interface {
+	M1()
+}
+

I1 is an interface. + +

type I2 interface {
+	I1
+	M2()
+}
+ +
type S1 struct {
+	F int // field
+}
+

S1 is a struct. + +

type S2 struct {
+	S1
+	G int
+}
+

S2 is another struct. + +

type T int
+

T is a type. + +

const CT T = 3
+

CT is a typed constant. +They appear after their type. + +

func TF() T
+

TF is a constructor for T. + +

func (T) M()
+

M is a method of T. +BUG(xxx): this verifies that notes are rendered. \ No newline at end of file -- cgit v1.3-6-g1900