Documentation ¶
Overview ¶
Package render is for JSON
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON(w http.ResponseWriter, code int, v interface{})
JSON marshals 'v' to JSON, automatically escaping HTML and setting the Content-Type as application/json.
Types ¶
Click to show internal directories.
Click to hide internal directories.