xml

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package xml minifies XML1.0 following the specifications at http://www.w3.org/TR/xml/.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Minify

func Minify(m minify.Minifier, _ string, w io.Writer, r io.Reader) error

Minify minifies XML data, it reads from r and writes to w.

Example
m := minify.New()
m.AddFuncRegexp(regexp.MustCompile("[/+]xml$"), Minify)

if err := m.Minify("text/xml", os.Stdout, os.Stdin); err != nil {
	fmt.Println("minify.Minify:", err)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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