From c899a050c06733965dae8ea686daab36e187ba45 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 7 Jan 2021 10:20:03 +0100 Subject: Return Node from all helpers instead of NodeFunc (#62) This makes it clearer that the helpers return a `Node` of any kind, and that the type is not important. This also streamlines the API, as attribute helpers already return just `Node`.--- components/documents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/documents.go') diff --git a/components/documents.go b/components/documents.go index 17b421a..47373cc 100644 --- a/components/documents.go +++ b/components/documents.go @@ -17,7 +17,7 @@ type HTML5Props struct { } // HTML5 document template. -func HTML5(p HTML5Props) g.NodeFunc { +func HTML5(p HTML5Props) g.Node { var lang, description g.Node if p.Language != "" { lang = Lang(p.Language) -- cgit 1.4.1