all repos — gomponents @ 04640fcce01becec93d63beb3ddb034842e51c15

HTML components in pure Go

Use go workspace in example app (#211)

Markus Wüstenberg
commit

04640fcce01becec93d63beb3ddb034842e51c15

parent

fae592d35f474c31e0dd40b06f7721cb69a5d67c

2 files changed, 8 insertions(+), 2 deletions(-)

changed files
A internal/examples/app/go.work
@@ -0,0 +1,6 @@
+go 1.23.1 + +use ( + . + ../../../ +)
M internal/examples/app/html/home.gointernal/examples/app/html/home.go
@@ -13,8 +13,8 @@ P(Text("This is a gomponents example app!")),
P(Raw(`Have a look at the <a href="https://github.com/maragudk/gomponents/tree/main/internal/examples/app">source code</a> to see how it’s structured.`)), - Ul(Group(Map(items, func(s string) Node { + Ul(Map(items, func(s string) Node { return Li(Text(s)) - }))), + })), ) }