Skip to content

Commit

Permalink
Use go workspace in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswustenberg committed Sep 24, 2024
1 parent fae592d commit addee2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions internal/examples/app/go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
go 1.23.1

use (
.
../../../
)
4 changes: 2 additions & 2 deletions internal/examples/app/html/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ func HomePage(items []string) Node {

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))
}))),
})),
)
}

0 comments on commit addee2e

Please sign in to comment.