Documentation ¶
Index ¶
- Variables
- func Data(w http.ResponseWriter, v interface{}, msg ...string)
- func Error(w http.ResponseWriter, err error)
- func HTML(r *http.Request, w http.ResponseWriter, name string, ...)
- func Init()
- func MaybeError(w http.ResponseWriter, err error)
- func Message(w http.ResponseWriter, format string, args ...interface{})
- func Put(r *http.Request, key string, val interface{})
- func Text(w http.ResponseWriter, v string, codes ...int)
Constants ¶
This section is empty.
Variables ¶
View Source
var Render *render.Render
Functions ¶
func Data ¶
func Data(w http.ResponseWriter, v interface{}, msg ...string)
func Error ¶
func Error(w http.ResponseWriter, err error)
func HTML ¶
func HTML(r *http.Request, w http.ResponseWriter, name string, htmlOpt ...render.HTMLOptions)
func MaybeError ¶
func MaybeError(w http.ResponseWriter, err error)
func Message ¶
func Message(w http.ResponseWriter, format string, args ...interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.