Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusSuccess = "success" StatusFailure = "failure" StatusError = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Status string `json:"status"` Message string `json:"message,omitempty"` Data interface{} `json:"data,omitempty"` }
func BadRequest ¶
func BadRequest(data interface{}) Response
func InternalServerError ¶
func InternalServerError() Response
func MethodNotAllowed ¶
func MethodNotAllowed() Response
func Unauthorized ¶
func Unauthorized() Response
Click to show internal directories.
Click to hide internal directories.