github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/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{}