Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseJSON200 ¶
func ResponseJSON200(w http.ResponseWriter, body interface{})
ResponseJSON200 return a 200 HTTP response width content-type json
func ResponseJSON400 ¶
func ResponseJSON400(w http.ResponseWriter, body interface{})
ResponseJSON400 return a 400 HTTP response width content-type json
Types ¶
type ResponseBody ¶
type ResponseBody struct {
Data interface{} `json:"data"`
}
ResponseBody is a general struct to helper use to response
Click to show internal directories.
Click to hide internal directories.