1 // Copyright 2014 Manu Martinez-Almeida. All rights reserved.
2 // Use of this source code is governed by a MIT style
3 // license that can be found in the LICENSE file.
16 var xmlContentType = []string{"application/xml; charset=utf-8"}
18 func (r XML) Render(w http.ResponseWriter) error {
20 return xml.NewEncoder(w).Encode(r.Data)
23 func (r XML) WriteContentType(w http.ResponseWriter) {
24 writeContentType(w, xmlContentType)