Documentation ¶ Index ¶ func New(nodes ...node.Node) *element type Element Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(nodes ...node.Node) *element New Creates a new header element with the given child nodes. Example: header.New(h1.Text("Welcome"), p.Text("A brief introduction")) Renders: <header><h1>Welcome</h1><p>A brief introduction</p></header> Types ¶ type Element ¶ type Element = element Element is an exported alias for the private element type Source Files ¶ View all Source files header.go Click to show internal directories. Click to hide internal directories.