all repos — gomponents @ ca80dce018e5d66e2f113669d6e3738234de5678

HTML components in pure Go

Add package documentation (#1)

Markus Wüstenberg
commit

ca80dce018e5d66e2f113669d6e3738234de5678

parent

fc3cc0f0f3a59bf4fe27a4e32dc2ef420b3fa2f8

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

changed files
M gomponents.gogomponents.go
@@ -1,3 +1,10 @@
+// Package gomponents provides components of DOM nodes for Go, that can render to an HTML Document. +// The primary interface is a Node, which has a single function Render, which should render +// the Node to a string. Furthermore, NodeFunc is a function which implements the Node interface +// by calling itself on Render. +// All DOM elements and attributes can be created by using the El and Attr functions. +// The package also provides a lot of convenience functions for creating elements and attributes +// with the most commonly used parameters. If they don't suffice, a fallback to El and Attr is always possible. package gomponents import (