github.com/bketelsen/buffalo@v0.9.5/render/renderer.go (about) 1 package render 2 3 import "io" 4 5 // Renderer interface that must be satisfied to be used with 6 // buffalo.Context.Render 7 type Renderer interface { 8 ContentType() string 9 Render(io.Writer, Data) error 10 } 11 12 // Data type to be provided to the Render function on the 13 // Renderer interface. 14 type Data map[string]interface{}