Documentation ¶
Index ¶
- Variables
- func Send(w http.ResponseWriter, r *http.Request, value interface{}) error
- func SendError(w http.ResponseWriter, r *http.Request, err error) error
- func SendErrorText(w http.ResponseWriter, errOrStringer interface{})
- func SendWithStatus(w http.ResponseWriter, r *http.Request, status int, value interface{}) error
- func SetStatus(w http.ResponseWriter, status int)
Constants ¶
This section is empty.
Variables ¶
View Source
var Renderer = render.New(render.Options{})
Just use a singleton for now.
Functions ¶
func SendErrorText ¶
func SendErrorText(w http.ResponseWriter, errOrStringer interface{})
func SendWithStatus ¶
func SetStatus ¶
func SetStatus(w http.ResponseWriter, status int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.