Versions in this module Expand all Collapse all v0 v0.2.0 Mar 19, 2019 v0.1.0 Nov 5, 2018 Changes in this version + type Response struct + Code int + Function string + InternalError *ServerError + Payload struct{ ... } + func New(code int) *Response + func (r *Response) Error(w http.ResponseWriter) + func (r *Response) JSON(w http.ResponseWriter) + func (r *Response) SetErrorMessage(message string) *Response + func (r *Response) SetInternalError(serverError *ServerError) *Response + func (r *Response) SetToken(token string) *Response + func (r *Response) SetUser(data interface{}) *Response + func (r *Response) SetUsers(datas interface{}) *Response + type ResponseError struct + Code int + Message string + type ServerError struct + Args []interface{} + Err error + Query string + func CreateInternalError(query string, args []interface{}, err error) *ServerError