Documentation
¶
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.