Skip to content

Commit

Permalink
Release v1 (#226)
Browse files Browse the repository at this point in the history
v1.0.0-beta1 gave no problems with my other gomponents libraries, that
of others, and some of my large projects, so releasing v1!

No more breaking changes! 😁
  • Loading branch information
markuswustenberg authored Oct 11, 2024
1 parent 8530447 commit e53dba6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ They render to HTML 5, and make it easy for you to build reusable components.
So you can focus on building your app instead of learning yet another templating language.

```shell
go get maragu.dev/gomponents@v1.0.0-beta1
go get maragu.dev/gomponents
```

Made with ✨sparkles✨ by [maragu](https://www.maragu.dev/).
Expand All @@ -38,16 +38,14 @@ Check out [www.gomponents.com](https://www.gomponents.com) for an introduction.
- `Map` for mapping data to components and `Group` for grouping components,
- and `If`/`Iff` for conditional rendering.
- No external dependencies
- Mature and stable, no breaking changes

## Usage

```shell
go get maragu.dev/gomponents@v1.0.0-beta1
go get maragu.dev/gomponents
```

The preferred way to use gomponents is with so-called dot-imports (note the dot before the imports),
to give you that smooth, native HTML feel:

```go
package main

Expand Down
4 changes: 2 additions & 2 deletions internal/examples/app/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module app

go 1.23.1
go 1.23.2

require maragu.dev/gomponents v0.22.1-0.20241003092644-fe24f0575214
require maragu.dev/gomponents v1.0.0-beta1
4 changes: 2 additions & 2 deletions internal/examples/app/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
maragu.dev/gomponents v0.22.1-0.20241003092644-fe24f0575214 h1:bNGcux5RpG5WWQby69VsE0GexUxryln8ltlfdaf06oI=
maragu.dev/gomponents v0.22.1-0.20241003092644-fe24f0575214/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM=
maragu.dev/gomponents v1.0.0-beta1 h1:I51NqKfrtQC4GxuWShqW5CT5BrfToMEueLD76IhdSXs=
maragu.dev/gomponents v1.0.0-beta1/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM=
2 changes: 1 addition & 1 deletion internal/examples/app/go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.23.1
go 1.23.2

use (
.
Expand Down
1 change: 1 addition & 0 deletions internal/examples/app/go.work.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maragu.dev/gomponents v1.0.0-beta1/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM=
2 changes: 1 addition & 1 deletion internal/examples/app/html/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func HomePage(items []string) Node {

P(Text("This is a gomponents example app!")),

P(Raw(`Have a look at the <a href="https://maragu.dev/gomponents/tree/main/internal/examples/app">source code</a> to see how it’s structured.`)),
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(Map(items, func(s string) Node {
return Li(Text(s))
Expand Down

0 comments on commit e53dba6

Please sign in to comment.