From 8b43a908820fb8c6b8a0f6d68d11bb2596a9e033 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Wed, 26 Jun 2024 10:32:46 +0200 Subject: Add links to godoc (#183) Also add an example for `http.Adapt`. Fixes #182--- html/elements.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html') diff --git a/html/elements.go b/html/elements.go index 35e5b74..f676462 100644 --- a/html/elements.go +++ b/html/elements.go @@ -1,5 +1,7 @@ // Package html provides common HTML elements and attributes. +// // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements. +// // See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes for a list of attributes. package html @@ -9,7 +11,7 @@ import ( g "github.com/maragudk/gomponents" ) -// Doctype returns a special kind of Node that prefixes its sibling with the string "". +// Doctype returns a special kind of [g.Node] that prefixes its sibling with the string "". func Doctype(sibling g.Node) g.Node { return g.NodeFunc(func(w io.Writer) error { if _, err := w.Write([]byte("")); err != nil { -- cgit 1.4.1