Documentation
¶
Overview ¶
Package figure provides constructors and methods for the HTML <figure> element.
The <figure> HTML element represents self-contained content, potentially with an optional caption, which is specified using the <figcaption> element. The figure, its caption, and its contents are referenced as a single unit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagOpen = []byte("<figure") TagClose = []byte("</figure>") )
Byte constants for HTML rendering.
Functions ¶
func Caption ¶ added in v0.3.0
Caption creates a figure with a caption and content. The caption is rendered as a figcaption element before the content nodes. Example: figure.Caption("An elephant", img.New().Src("elephant.jpg")) Renders: <figure><figcaption>An elephant</figcaption><img src="elephant.jpg" /></figure>
Types ¶
Click to show internal directories.
Click to hide internal directories.