all repos — gomponents @ a79e6d9d10099c418846280ae4a4997e82f6efee

HTML components in pure Go

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.

Markus Wüstenberg
commit

a79e6d9d10099c418846280ae4a4997e82f6efee

parent

1c0ceb44a530632be2d591eafcadea2ba481a682

1 file changed, 5 insertions(+), 0 deletions(-)

changed files
M html/elements.gohtml/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...) }