From c129ae8da154e1f6ef325ac85ca4d2736547c7cd Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 11 May 2023 10:06:23 +0200 Subject: Document Text/Textf helpers better Both in the readme and package doc. Fixes #133. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1ebcd51..bf4a6f6 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,16 @@ Made in 🇩🇰 by [maragu](https://www.maragu.dk), maker of [online Go courses - 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), -- cgit 1.4.1