all repos — gomponents @ 3fa5e676316d3dd68fec2e99da53ca2fe0eec9c4

HTML components in pure Go

Fix links in package documentation Apparently, [Node]s doesn't link in Godoc, while [Node]-s does.

Markus Wüstenberg
commit

3fa5e676316d3dd68fec2e99da53ca2fe0eec9c4

parent

04640fcce01becec93d63beb3ddb034842e51c15

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M gomponents.gogomponents.go
@@ -6,7 +6,7 @@ //
// 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 [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]. +// 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. //
@@ -247,7 +247,7 @@ return err
}) } -// Map a slice of anything to a [Group] (which is just a slice of [Node]s). +// Map a slice of anything to a [Group] (which is just a slice of [Node]-s). func Map[T any](ts []T, cb func(T) Node) Group { var nodes []Node for _, t := range ts {
@@ -256,7 +256,7 @@ }
return nodes } -// Group a slice of [Node]s into one Node, while still being usable like a regular slice of [Node]s. +// Group a slice of [Node]-s into one Node, while still being usable like a regular slice of [Node]-s. // A [Group] can render directly, but if any of the direct children are [AttributeType], they will be ignored, // to not produce invalid HTML. type Group []Node