Documentation ¶
Index ¶
- func CreateBody(rawBody interface{}) (body io.Reader, err error)
- func Paginate(paginationParams *models.Pagination) (offset int, pageSize int)
- func ParseBody(r *http.Request, x interface{}) (errCode int, err error)
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBody ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.