Documentation ¶
Index ¶
- Constants
- func JsonErrorResponce(w http.ResponseWriter, errorList map[string][]string, status int)
- func JsonResponceMap(w http.ResponseWriter, data map[string]interface{})
- func JsonResponceMapSlice(w http.ResponseWriter, data map[string][]*string)
- func JsonRespond(w http.ResponseWriter, data map[string]interface{})
- func Message(status bool, message string) map[string]interface{}
- func Response(w http.ResponseWriter, data interface{})
- func ResponseList(w http.ResponseWriter, dataList interface{}, paginator *pagination.Pagination)
Constants ¶
View Source
const ( REST_DATA_KEY = "data" REST_PAGINATION_KEY = "pagination" )
Variables ¶
This section is empty.
Functions ¶
func JsonErrorResponce ¶
func JsonErrorResponce(w http.ResponseWriter, errorList map[string][]string, status int)
func JsonResponceMap ¶
func JsonResponceMap(w http.ResponseWriter, data map[string]interface{})
func JsonResponceMapSlice ¶
func JsonResponceMapSlice(w http.ResponseWriter, data map[string][]*string)
func JsonRespond ¶
func JsonRespond(w http.ResponseWriter, data map[string]interface{})
func Response ¶
func Response(w http.ResponseWriter, data interface{})
func ResponseList ¶
func ResponseList(w http.ResponseWriter, dataList interface{}, paginator *pagination.Pagination)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.