Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XMLRender ¶
type XMLRender struct {
Data interface{}
}
XMLRender contains the given interface object.
func (*XMLRender) Render ¶
func (r *XMLRender) Render(w http.ResponseWriter) error
Render (XML) encodes the given interface object and writes data with custom ContentType.
func (*XMLRender) Setup ¶
func (r *XMLRender) Setup(data interface{}, opts ...interface{})
Setup set data and opts
func (*XMLRender) WriteContentType ¶
func (*XMLRender) WriteContentType(w http.ResponseWriter)
WriteContentType (XML) writes XML ContentType for response.
type XMLRenderFactory ¶
type XMLRenderFactory struct{}
func (XMLRenderFactory) Instance ¶
func (XMLRenderFactory) Instance() render.RenderRecycler
Instance a new Render instance
Click to show internal directories.
Click to hide internal directories.