From a76262652b227c95ce140f3698c46f59b79354ac Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 10 Dec 2020 13:00:23 +0100 Subject: Move elements and attributes into html package (#52) This makes it easier to use dot-imports. Also updated the readme and examples with new usage, and move the `Classes` helper into the `components` package.--- attr/boolean.go | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 attr/boolean.go (limited to 'attr/boolean.go') diff --git a/attr/boolean.go b/attr/boolean.go deleted file mode 100644 index 2a70c9d..0000000 --- a/attr/boolean.go +++ /dev/null @@ -1,45 +0,0 @@ -package attr - -import ( - g "github.com/maragudk/gomponents" -) - -func Async() g.Node { - return g.Attr("async") -} - -func AutoFocus() g.Node { - return g.Attr("autofocus") -} - -func AutoPlay() g.Node { - return g.Attr("autoplay") -} - -func Controls() g.Node { - return g.Attr("controls") -} - -func Defer() g.Node { - return g.Attr("defer") -} - -func Disabled() g.Node { - return g.Attr("disabled") -} - -func Multiple() g.Node { - return g.Attr("multiple") -} - -func ReadOnly() g.Node { - return g.Attr("readonly") -} - -func Required() g.Node { - return g.Attr("required") -} - -func Selected() g.Node { - return g.Attr("selected") -} -- cgit 1.4.1