Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, error string, code int)
Error encodes json error payload into ResponseWriter.
func Respond ¶
func Respond(w http.ResponseWriter, entity interface{})
Respond json encodes entity into ResponseWriter or error if encoding failed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.