Help us shape the future of Go! Take the 2026 Go Developer Survey

xmlappend

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package xmlappend provides allocation-free XML text/attribute escaping and element helpers, byte-identical to encoding/xml's output, for hot response encoders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elem

func Elem(buf []byte, name, val string) []byte

Elem appends <name>escaped(val)</name> to buf.

func Escaped

func Escaped(buf []byte, s string) []byte

Escaped appends s to buf escaped exactly as encoding/xml escapes character data and attribute values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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