Versions in this module Expand all Collapse all v0 v0.1.0 Nov 16, 2022 Changes in this version + const AttrQuotationMark + const Block + const Indent2Spaces + const Indent4Spaces + const IndentNone + const IndentTabs + const Inline + const PreserveInlineWhitespace + var ErrEmptyAttribute = errors.New("xml: empty sttribute") + func Attr(key string, val T) func(AttrWriter) + func Attrs(m M) func(AttrWriter) + func ScrambleFunc(s string, f func(byte) bool) []byte + func Tag(name string, args ...any) func(TagWriter) + type AttrMarshaler interface + MarshalXAttr func() (RawAttr, bool) + type AttrPrinter interface + Attr func(key string, val RawAttr) + type AttrWriter interface + Attr func(string, any) + Attrs func(map[string]any) + OptAttr func(string, any) + type ContMarshaler interface + MarshalXCont func(w Printer) + type ContPrinter interface + Content func(RawCont) + Linebreak func() + StopInline func() + type ContWriter interface + Content func(...any) + type DeclPrinter interface + BOM func() + XmlDecl func() + type ErrUnsupportedType struct + func (e ErrUnsupportedType) Error() string + type IndentStyle int + type Printer interface + func NewPrinter(indenter IndentStyle, putter func([]byte), tagger func(string) TagKind) Printer + type PrinterFlags uint + type RawAttr []byte + func ScrambleAttr(s string) RawAttr + type RawCont []byte + func ScrambleCont(s string) RawCont + type TagKind int + type TagPrinter interface + CTag func() + OTag func(name string) + type TagWriter interface + Tag func(string, ...any) + type Writer interface + func NewWriter(p Printer) Writer