Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct {
Status string `json:"status"`
Message string `json:"message"`
Data map[string]interface{} `json:"data"`
}
Response defines an response for the API
func ErrorWithData ¶
ErrorWithData returns an error message with data
func SuccessWithData ¶
SuccessWithData returns a success message with data
Click to show internal directories.
Click to hide internal directories.