From f27cb0c05f23785189979e57c831eb798e1da1f1 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Wed, 23 Sep 2020 22:10:35 +0200 Subject: Add Textf function (#17) Like Text, but calls fmt.Sprintf before rendering.--- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index b817ad0..23b29b7 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ func Page(title, path string) g.Node { el.Body( Navbar(path), el.H1(title), - el.P(g.Text(fmt.Sprintf("Welcome to the page at %v.", path))), + el.P(g.Textf("Welcome to the page at %v.", path)), ), ), ) -- cgit 1.4.1