From 100ae9e8308f380eeb3c6a5ea7a7e3277483aa43 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 10 Dec 2020 13:13:10 +0100 Subject: Rename Document to Doctype (#54) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index cd8a887..5a8a954 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ func handler(w http.ResponseWriter, r *http.Request) { } func Page(title, currentPath string) g.Node { - return Document( + return Doctype( HTML( Lang("en"), Head( @@ -94,7 +94,7 @@ import ( "net/http" g "github.com/maragudk/gomponents" - . "github.com/maragudk/gomponents/components" + c "github.com/maragudk/gomponents/components" . "github.com/maragudk/gomponents/html" ) @@ -107,7 +107,7 @@ func handler(w http.ResponseWriter, r *http.Request) { } func Page(title, currentPath string) g.Node { - return HTML5(HTML5Props{ + return c.HTML5(c.HTML5Props{ Title: title, Language: "en", Head: []g.Node{ @@ -129,7 +129,7 @@ func Navbar(currentPath string) g.Node { } func NavbarLink(href, name, currentPath string) g.Node { - return A(href, Classes{"is-active": currentPath == href}, g.Text(name)) + return A(href, c.Classes{"is-active": currentPath == href}, g.Text(name)) } ``` -- cgit 1.4.1