Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBytes ¶
func OpenBrowser ¶
func OpenBrowser(url string)
func RequestToObject ¶
func RequestToObject(r io.ReadCloser, data interface{}) (e error)
func Response ¶
func Response(w http.ResponseWriter, data interface{})
func ResponseError ¶
func ResponseError(w http.ResponseWriter, e error)
Types ¶
type JSONResponse ¶
type JSONResponse struct { // Body Data interface{} `json:"data,omitempty"` // Error information Error interface{} `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.