decl

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL