all repos — gomponents @ 87d09c382434c9198c50356954fedf0ab8e5576f

HTML components in pure Go

Add package docs (#41) Also update readme with features.

Markus Wüstenberg
commit

87d09c382434c9198c50356954fedf0ab8e5576f

parent

267d40bbea6036f913c4047a6a2055b3e5d7bb96

3 files changed, 12 insertions(+), 0 deletions(-)

changed files
M README.mdREADME.md
@@ -13,6 +13,16 @@
Check out the blog post [gomponents: declarative view components in Go](https://www.maragu.dk/blog/gomponents-declarative-view-components-in-go/) for background. +## Features + +- Write declarative HTML in Go without all the strings, so you get + - Type safety + - Auto-completion + - Nice formatting with `gofmt` +- Simple API that's easy to learn and use +- Build reusable view components +- No external dependencies + ## Usage Get the library using `go get`:
M assert/assert.goassert/assert.go
@@ -1,3 +1,4 @@
+// Package assert provides testing helpers. package assert import (
M components/documents.gocomponents/documents.go
@@ -1,3 +1,4 @@
+// Package components provides high-level components that are composed of low-level elements and attributes. package components import (