Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Data *interface{} `json:"data,omitempty"` Meta *map[string]interface{} `json:"meta,omitempty"` }
func CreateAPIResponse ¶
func CreateAPIResponse( data *interface{}, meta *map[string]interface{}, ) APIResponse
CreateAPIResponse is a constructor for create an API response. APIResponse is a struct with two field: data (store the API's result) and meta (store the API's metadata)
Click to show internal directories.
Click to hide internal directories.