Documentation
¶
Index ¶
- func Bytes(n int) []byte
- func GetCurrTime() int
- func GetMD5String(strings string) string
- func HTTPQueryBuild(params map[string]string) string
- func Hex(n int) string
- func Md5ByByte(bytes []byte) string
- type HTTPClient
- func (c *HTTPClient) GetResponseByte() (body []byte, err error)
- func (c *HTTPClient) GetResponseJSON(response interface{}, errorResponse interface{}) error
- func (c *HTTPClient) HTTPGet(url string, params map[string]string) (err error)
- func (c *HTTPClient) HTTPPost(url string, params map[string]string) error
- func (c *HTTPClient) HTTPPostJSON(url, jsonStr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient ...
func (*HTTPClient) GetResponseByte ¶
func (c *HTTPClient) GetResponseByte() (body []byte, err error)
GetResponseByte ...
func (*HTTPClient) GetResponseJSON ¶
func (c *HTTPClient) GetResponseJSON(response interface{}, errorResponse interface{}) error
GetResponseJSON ...
func (*HTTPClient) HTTPGet ¶
func (c *HTTPClient) HTTPGet(url string, params map[string]string) (err error)
HTTPGet ...
func (*HTTPClient) HTTPPost ¶
func (c *HTTPClient) HTTPPost(url string, params map[string]string) error
HTTPPost ...
func (*HTTPClient) HTTPPostJSON ¶
func (c *HTTPClient) HTTPPostJSON(url, jsonStr string) error
HTTPPostJSON ...
Click to show internal directories.
Click to hide internal directories.