Documentation ¶
Overview ¶
Package decl contains functionality related to XML declarations.
Index ¶
Constants ¶
View Source
const ( // XMLHeader is an XML header like the one in encoding/xml but without a // newline at the end. XMLHeader = `<?xml version="1.0" encoding="UTF-8"?>` )
Variables ¶
This section is empty.
Functions ¶
func Skip ¶
func Skip(r xml.TokenReader) xml.TokenReader
Skip wraps a token reader and skips any XML declaration.
func TrimLeftSpace ¶ added in v0.22.0
func TrimLeftSpace(r xml.TokenReader) xml.TokenReader
TrimLeftSpace is a transformer that removes all whitespace only chardata tokens found before the next StartElement token (and then returns the stream normally past that point).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.