Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Router = pat.New() Base *template.Template )
Functions ¶
func ServeJSON ¶
func ServeJSON(w http.ResponseWriter, code int, d ContentData)
func ServeJSONError ¶
func ServeJSONError(w http.ResponseWriter, code int, err error, d ContentData)
func WriteError ¶
func WriteError(w http.ResponseWriter, code int, err error)
Types ¶
type ContentData ¶
type ContentData map[string]interface{}
Click to show internal directories.
Click to hide internal directories.