Documentation
¶
Index ¶
- func EncodeURL(api string, params RequestQueries) (string, error)
- func GetJSON(url string, response interface{}) error
- func GetQuery(req *http.Request, key string) string
- func PostForm(url, field, filename string, reader io.Reader, response interface{}) error
- func PostFormByFile(url, field, filename string, response interface{}) error
- func PostJSON(url string, params interface{}, response interface{}) error
- func PostJSONWithBody(url string, params interface{}) (int, []byte, error)
- func PostJSONWithBody2(url string, params interface{}) (*http.Response, error)
- func RandomString(ln int) string
- func TokenAPI(api, token string) (string, error)
- type RequestParams
- type RequestQueries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeURL ¶
func EncodeURL(api string, params RequestQueries) (string, error)
EncodeURL add and encode parameters.
func PostFormByFile ¶
func PostJSONWithBody ¶
PostJSONWithBody return with http body.
func PostJSONWithBody2 ¶
postJSONWithBody return with http body.
Types ¶
Click to show internal directories.
Click to hide internal directories.