Documentation ¶
Index ¶
- Variables
- func Element(tag string, args ...interface{}) view.View
- func WriteAttrib(writer io.Writer, name, value interface{})
- type View
- type Writer
- func (self *Writer) Attrib(name string, value ...interface{}) *Writer
- func (self *Writer) AttribFlag(name string, flag bool) *Writer
- func (self *Writer) AttribIfNotDefault(name string, value interface{}) *Writer
- func (self *Writer) CloseTag() *Writer
- func (self *Writer) CloseTagAlways() *Writer
- func (self *Writer) Content(s string) *Writer
- func (self *Writer) EscapeContent(s string) *Writer
- func (self *Writer) OpenTag(tag string) *Writer
- func (self *Writer) Printf(format string, args ...interface{}) *Writer
- func (self *Writer) PrintfEscape(format string, args ...interface{}) *Writer
- func (self *Writer) Reset()
- func (self *Writer) Write(p []byte) (n int, err error)
- func (self *Writer) WriteXMLHeader() *Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var CloseTag interface{}
View Source
var Config = struct { Indent string }{}
Functions ¶
func WriteAttrib ¶
Types ¶
type View ¶
func NewViewIndent ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) AttribFlag ¶
AttribFlag writes a name="name" attribute if flag is true, else nothing will be written.
func (*Writer) AttribIfNotDefault ¶
func (*Writer) CloseTagAlways ¶
Creates an explicit close tag, even if there is no content
func (*Writer) EscapeContent ¶
func (*Writer) PrintfEscape ¶
func (*Writer) WriteXMLHeader ¶
Click to show internal directories.
Click to hide internal directories.