diff options
author | Markus Wüstenberg | 2024-06-26 10:32:46 +0200 |
---|---|---|
committer | GitHub | 2024-06-26 08:32:46 +0000 |
commit | 8b43a908820fb8c6b8a0f6d68d11bb2596a9e033 (patch) | |
tree | dfa2f4903ee64a225d35f5e7c7a3f0ba193a5bb7 /html | |
parent | a79e6d9d10099c418846280ae4a4997e82f6efee (diff) | |
download | gomponents-8b43a908820fb8c6b8a0f6d68d11bb2596a9e033.tar.lz gomponents-8b43a908820fb8c6b8a0f6d68d11bb2596a9e033.tar.zst gomponents-8b43a908820fb8c6b8a0f6d68d11bb2596a9e033.zip |
Add links to godoc (#183)
Also add an example for `http.Adapt`. Fixes #182
Diffstat (limited to 'html')
-rw-r--r-- | html/elements.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 html>". +// Doctype returns a special kind of [g.Node] that prefixes its sibling with the string "<!doctype html>". func Doctype(sibling g.Node) g.Node { return g.NodeFunc(func(w io.Writer) error { if _, err := w.Write([]byte("<!doctype html>")); err != nil { |