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`.
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M components/documents.go → components/documents.go
@@ -17,7 +17,7 @@ Body []g.Node } // 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)