Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeToUTF16BEXML(w io.Writer, v interface{}) (int64, error)
- func EncodeToUTF16LEXML(w io.Writer, v interface{}) (int64, error)
- func EncodeToUTF8XML(w io.Writer, v interface{}) (int64, error)
- func NewUTF16BEDecoder() *encoding.Decoder
- func NewUTF16BEEncoder() *encoding.Encoder
- func NewUTF16LEDecoder() *encoding.Decoder
- func NewUTF16LEEncoder() *encoding.Encoder
- func NewUTF8Decoder() *encoding.Decoder
- func NewUTF8Encoder() *encoding.Encoder
- func XMLHeaderByEncoding(e encoding.Encoding) string
- type EncodeToXMLFunc
Constants ¶
View Source
const ( // UTF8XMLHeader is the UTF-8 encoding header. UTF8XMLHeader = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>` + "\n" // UTF16XMLHeader is the UTF-16 encoding header. UTF16XMLHeader = `<?xml version="1.0" encoding="UTF-16" standalone="yes"?>` + "\n" // XMLSpacePreserve is tells the user agent to convert all newline and tab characters into spaces. // Then, it draws all space characters (including leading, trailing and multiple consecutive space characters). // Example: xml:space="preserve" XMLSpacePreserve = "preserve" )
Variables ¶
View Source
var ( // UTF8Encoding is the UTF-8 encoding. UTF8Encoding encoding.Encoding = unicode.UTF8 // UTF16BEEncoding is the UTF-16 Big Endian encoding. UTF16BEEncoding encoding.Encoding = unicode.UTF16(unicode.BigEndian, unicode.UseBOM) // UTF16LEEncoding is the UTF-16 Little Endian encoding. UTF16LEEncoding encoding.Encoding = unicode.UTF16(unicode.LittleEndian, unicode.UseBOM) )
Functions ¶
func EncodeToUTF16BEXML ¶
EncodeToUTF16BEXML ...
func EncodeToUTF16LEXML ¶
EncodeToUTF16LEXML ...
func EncodeToUTF8XML ¶
EncodeToUTF8XML ...
func XMLHeaderByEncoding ¶
XMLHeaderByEncoding ...
Types ¶
Click to show internal directories.
Click to hide internal directories.