about summary refs log tree commit diff stats
path: root/components/documents.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2021-01-07 10:20:03 +0100
committerGitHub2021-01-07 10:20:03 +0100
commitc899a050c06733965dae8ea686daab36e187ba45 (patch)
treec1fb78147e22eacd98fef576f39b3009ca6f3899 /components/documents.go
parentd41c4e5a85362dec7844a9093b43720eb0e70e72 (diff)
downloadgomponents-c899a050c06733965dae8ea686daab36e187ba45.tar.lz
gomponents-c899a050c06733965dae8ea686daab36e187ba45.tar.zst
gomponents-c899a050c06733965dae8ea686daab36e187ba45.zip
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`.
Diffstat (limited to 'components/documents.go')
-rw-r--r--components/documents.go2
1 files changed, 1 insertions, 1 deletions
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)