diff options
author | Markus Wüstenberg | 2024-09-24 09:59:35 +0200 |
---|---|---|
committer | Markus Wüstenberg | 2024-09-24 09:59:35 +0200 |
commit | fae592d35f474c31e0dd40b06f7721cb69a5d67c (patch) | |
tree | ec19d664bfd6d799efd9e1a932fa2628c5d7ba32 | |
parent | f58a0660823bc88c901eba4a130f1d4996729c73 (diff) | |
download | gomponents-fae592d35f474c31e0dd40b06f7721cb69a5d67c.tar.lz gomponents-fae592d35f474c31e0dd40b06f7721cb69a5d67c.tar.zst gomponents-fae592d35f474c31e0dd40b06f7721cb69a5d67c.zip |
Fix doc comments regarding `Group`
-rw-r--r-- | gomponents.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gomponents.go b/gomponents.go index a17e1da..e0c5b0b 100644 --- a/gomponents.go +++ b/gomponents.go @@ -1,11 +1,12 @@ // Package gomponents provides HTML components in Go, that render to HTML 5. // -// The primary interface is a [Node]. It describes a function Render, which should render the [Node] +// The primary interface is a [Node]. It defines a function Render, which should render the [Node] // to the given writer as a string. // // All DOM elements and attributes can be created by using the [El] and [Attr] functions. // The functions [Text], [Textf], [Raw], and [Rawf] can be used to create text nodes, either HTML-escaped or unescaped. -// See also helper functions [Group], [Map], [If], and [Iff] for mapping data to nodes and inserting them conditionally. +// See also helper functions [Map], [If], and [Iff] for mapping data to nodes and inserting them conditionally. +// There's also the [Group] type, which is a slice of [Node]s that can be rendered as one [Node]. // // For basic HTML elements and attributes, see the package html. // |