From a79e6d9d10099c418846280ae4a4997e82f6efee Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Tue, 25 Jun 2024 14:47:01 +0200 Subject: Add LabelEl (#180) For consistency with the other name clashes. Also, adjust the readme. I know it's a bit weird to add a pre-deprecated function, but know it's the same as the other functions.--- html/elements.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'html/elements.go') diff --git a/html/elements.go b/html/elements.go index eb6fbc2..35e5b74 100644 --- a/html/elements.go +++ b/html/elements.go @@ -168,6 +168,11 @@ func Label(children ...g.Node) g.Node { return g.El("label", children...) } +// Deprecated: Use [Label] instead. +func LabelEl(children ...g.Node) g.Node { + return g.El("label", children...) +} + func Legend(children ...g.Node) g.Node { return g.El("legend", children...) } -- cgit 1.4.1