all repos — gomponents @ 4f9709afcc83b617f17f8e5757d58a55be7bf2cf

HTML components in pure Go

Document Text/Textf helpers better (#135) Both in the readme and package doc. Fixes #133.

Markus Wüstenberg
commit

4f9709afcc83b617f17f8e5757d58a55be7bf2cf

parent

b638b8b078ffedc76513aac30152ce36f2072814

1 file changed, 4 insertions(+), 2 deletions(-)

changed files
M README.mdREADME.md
@@ -25,14 +25,16 @@ - Type safety
- Auto-completion - Nice formatting with `gofmt` - Simple API that's easy to learn and use (you know most already if you know HTML) +- Useful helpers like `Text` and `Textf` that insert HTML-escaped text, `Map` for mapping data to components, + and `If` for conditional rendering. - No external dependencies ## Usage Get the library using `go get`: -```shell script -go get -u github.com/maragudk/gomponents +```shell +go get github.com/maragudk/gomponents ``` The preferred way to use gomponents is with so-called dot-imports (note the dot before the `gomponents/html` import),