Documentation ¶
Index ¶
- func Email(name string, email string, subject string, plainContent string, ...) error
- func Fail(w http.ResponseWriter, status int, resp map[string]interface{}, message string)
- func GetValidationErrorMessage(err error) string
- func Respond(w http.ResponseWriter, status int, data interface{})
- func Success(w http.ResponseWriter, status int, resp map[string]interface{}, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fail ¶
func Fail(w http.ResponseWriter, status int, resp map[string]interface{}, message string)
Return fail response
func GetValidationErrorMessage ¶
Build the error message
func Respond ¶
func Respond(w http.ResponseWriter, status int, data interface{})
Return json response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.