about summary refs log tree commit diff stats
path: root/internal/examples
diff options
context:
space:
mode:
authorMarkus Wüstenberg2024-09-24 09:46:45 +0200
committerGitHub2024-09-24 09:46:45 +0200
commitf58a0660823bc88c901eba4a130f1d4996729c73 (patch)
treefcf96b76fe265e332c7f442c8052014c77c0d720 /internal/examples
parent3a3de2932c6ec72c23c63608b21df93f61d88df5 (diff)
downloadgomponents-f58a0660823bc88c901eba4a130f1d4996729c73.tar.lz
gomponents-f58a0660823bc88c901eba4a130f1d4996729c73.tar.zst
gomponents-f58a0660823bc88c901eba4a130f1d4996729c73.zip
Make `Group` a type (#202)
This changes `Group` to be a type instead of a function, which means it
can support both grouping `[]Node` as well as doing variadic-ish slice things
like `Group{n1, n2}`.

This also means that `Map` can just return a `Group`.

Special thanks to @deitrix for this simple and elegant solution that,
for some reason or another, has had me perplexed for a long time.

Fixes #201.
Diffstat (limited to 'internal/examples')
0 files changed, 0 insertions, 0 deletions