Documentation ¶ Index ¶ func Response(w http.ResponseWriter, resp interface{}, err error) type Body Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Response ¶ func Response(w http.ResponseWriter, resp interface{}, err error) Types ¶ type Body ¶ type Body struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` Reason string `json:"reason,omitempty"` } Source Files ¶ View all Source files response.go Click to show internal directories. Click to hide internal directories.