diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/documents.go | 2 | ||||
-rw-r--r-- | components/elements.go | 2 |
2 files changed, 2 insertions, 2 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) diff --git a/components/elements.go b/components/elements.go index baffba6..f4e347d 100644 --- a/components/elements.go +++ b/components/elements.go @@ -5,6 +5,6 @@ import ( . "github.com/maragudk/gomponents/html" ) -func InputHidden(name, value string, children ...g.Node) g.NodeFunc { +func InputHidden(name, value string, children ...g.Node) g.Node { return Input(Type("hidden"), Name(name), Value(value), g.Group(children)) } |