Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) CloseTag(tag string)
- func (b *Buffer) CloseTagWithIndent(tag string)
- func (b *Buffer) DecreaseDepth()
- func (b *Buffer) GetDepth() int
- func (b *Buffer) GetLastLine() []byte
- func (b *Buffer) IncreaseDepth()
- func (b *Buffer) Len() int
- func (b *Buffer) OpenTag(tag string, attr attributes.Attributes)
- func (b *Buffer) RemoveEmptyLine()
- func (b *Buffer) RevertToLatestPoint()
- func (b *Buffer) ToFile(path string) error
- func (b *Buffer) Write(p []byte) (int, error)
- func (b *Buffer) WriteEmptyTag(tag string, attr attributes.Attributes)
- func (b *Buffer) WriteString(s string)
- func (b *Buffer) WriteStringWithIndent(s string)
- func (b *Buffer) WriteWithIndent(p []byte)
- type Flag
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) CloseTagWithIndent ¶
func (*Buffer) DecreaseDepth ¶
func (b *Buffer) DecreaseDepth()
func (*Buffer) GetLastLine ¶
func (*Buffer) IncreaseDepth ¶
func (b *Buffer) IncreaseDepth()
func (*Buffer) OpenTag ¶
func (b *Buffer) OpenTag(tag string, attr attributes.Attributes)
func (*Buffer) RemoveEmptyLine ¶
func (b *Buffer) RemoveEmptyLine()
func (*Buffer) RevertToLatestPoint ¶
func (b *Buffer) RevertToLatestPoint()
func (*Buffer) WriteEmptyTag ¶
func (b *Buffer) WriteEmptyTag(tag string, attr attributes.Attributes)
func (*Buffer) WriteString ¶
func (*Buffer) WriteStringWithIndent ¶
func (*Buffer) WriteWithIndent ¶
type Transformer ¶
type Transformer interface { // TransformToXML transforms the type to XML. It returns ErrEmptyValue when the // type is empty and can't be transformed to XML. The tag must be open BEFORE calling this method. TransformToXML(buffer *Buffer) error // GetXMLTag give the XML tag. It returns nil when the type can't define a unique // XML tag. GetXMLTag() []byte }
Click to show internal directories.
Click to hide internal directories.