gin/render/render.go

24 lines
508 B
Go
Raw Normal View History

2014-08-29 17:49:50 +00:00
// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
2014-07-15 15:41:56 +00:00
package render
import "net/http"
type Render interface {
2015-06-04 03:25:21 +00:00
Render(http.ResponseWriter) error
}
2014-07-15 15:41:56 +00:00
var (
2015-05-18 13:45:24 +00:00
_ Render = JSON{}
_ Render = IndentedJSON{}
_ Render = XML{}
_ Render = String{}
_ Render = Redirect{}
_ Render = Data{}
_ Render = HTML{}
_ HTMLRender = HTMLDebug{}
_ HTMLRender = HTMLProduction{}
2014-07-15 15:41:56 +00:00
)