Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCXfs ¶
func DefaultCXfs() goxic.ContentXformers
Types ¶
type Span ¶
Span wraps content into a HTML <span></span> element
Example ¶
out := os.Stdout cnt := gxc.P("foo") span := NewSpan(cnt, "", "") span.WriteTo(out) fmt.Fprintln(out) span = NewSpan(cnt, "&ID", "") span.WriteTo(out) fmt.Fprintln(out) span = NewSpan(cnt, "", "'CLS") span.WriteTo(out) fmt.Fprintln(out) span = NewSpan(cnt, "&ID", "'CLS") span.WriteTo(out) fmt.Fprintln(out)
Output: <span>foo</span> <span id="&ID">foo</span> <span class="'CLS">foo</span> <span id="&ID" class="'CLS">foo</span>
Click to show internal directories.
Click to hide internal directories.