gin: github.com/gin-gonic/gin/render Index | Files

package render

import "github.com/gin-gonic/gin/render"

Index

Package Files

data.go html.go json.go redirect.go render.go text.go xml.go yaml.go

func WriteJSON Uses

func WriteJSON(w http.ResponseWriter, obj interface{}) error

func WriteString Uses

func WriteString(w http.ResponseWriter, format string, data []interface{})

type Data Uses

type Data struct {
    ContentType string
    Data        []byte
}

func (Data) Render Uses

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

type HTML Uses

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

func (HTML) Render Uses

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

type HTMLDebug Uses

type HTMLDebug struct {
    Files []string
    Glob  string
}

func (HTMLDebug) Instance Uses

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

type HTMLProduction Uses

type HTMLProduction struct {
    Template *template.Template
}

func (HTMLProduction) Instance Uses

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

type HTMLRender Uses

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

type IndentedJSON Uses

type IndentedJSON struct {
    Data interface{}
}

func (IndentedJSON) Render Uses

func (r IndentedJSON) Render(w http.ResponseWriter) error

type JSON Uses

type JSON struct {
    Data interface{}
}

func (JSON) Render Uses

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

type Redirect Uses

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

func (Redirect) Render Uses

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

type Render Uses

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

type String Uses

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

func (String) Render Uses

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

type XML Uses

type XML struct {
    Data interface{}
}

func (XML) Render Uses

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

type YAML Uses

type YAML struct {
    Data interface{}
}

func (YAML) Render Uses

func (r YAML) Render(w http.ResponseWriter) error

Package render imports 7 packages (graph) and is imported by 47 packages. Updated 2017-01-23. Refresh now. Tools for package owners.