render

package
v0.0.0-...-60a913f Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2015 License: BSD-2-Clause Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, status int, err error)

Error will write a given error to the http.ResponseWriter as JSON and set the HTTP status.

func JSON

func JSON(w http.ResponseWriter, status int, v interface{})

JSON will write a given interface{} to the http.ResponseWriter as JSON and set the HTTP status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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