1
0

Update package doc to reflect new content (#102)

It hadn't been updated in a while.
This commit is contained in:
Markus Wüstenberg 2022-05-25 14:36:26 +02:00 committed by GitHub
parent 97698614be
commit c868c525b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,16 @@
// Package gomponents provides view components in Go, that render to HTML 5.
// 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.
//
// The primary interface is a Node. It describes a function Render, which should render the Node
// to the given writer as a string.
//
// 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.
// The functions Text, Textf, and Raw can be used to create text nodes.
// See also helper functions Group, Map, and If.
//
// For basic HTML elements and attributes, see the package html.
// For higher-level HTML components, see the package components.
// For SVG elements and attributes, see the package svg.
// For HTTP helpers, see the package http.
package gomponents
import (