render

package
v0.0.0-...-13b63e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2015 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ContentType string
	Data        []byte
}

func (Data) Write

func (r Data) Write(w http.ResponseWriter) error

type HTML

type HTML struct {
	Template *template.Template
	Name     string
	Data     interface{}
}

func (HTML) Write

func (r HTML) Write(w http.ResponseWriter) error

type HTMLDebug

type HTMLDebug struct {
	Files []string
	Glob  string
}

func (HTMLDebug) Instance

func (r HTMLDebug) Instance(name string, data interface{}) Render

type HTMLProduction

type HTMLProduction struct {
	Template *template.Template
}

func (HTMLProduction) Instance

func (r HTMLProduction) Instance(name string, data interface{}) Render

type HTMLRender

type HTMLRender interface {
	Instance(string, interface{}) Render
}

type IndentedJSON

type IndentedJSON struct {
	Data interface{}
}

func (IndentedJSON) Write

type JSON

type JSON struct {
	Data interface{}
}

func (JSON) Write

func (r JSON) Write(w http.ResponseWriter) error

type Redirect

type Redirect struct {
	Code     int
	Request  *http.Request
	Location string
}

func (Redirect) Write

func (r Redirect) Write(w http.ResponseWriter) error

type Render

type Render interface {
	Write(http.ResponseWriter) error
}

type String

type String struct {
	Format string
	Data   []interface{}
}

func (String) Write

func (r String) Write(w http.ResponseWriter) error

type XML

type XML struct {
	Data interface{}
}

func (XML) Write

func (r XML) Write(w http.ResponseWriter) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL