Versions in this module Expand all Collapse all v0 v0.0.2 Mar 19, 2022 Changes in this version + func ClientIp(r *http.Request) string + func ExternalIp() (string, error) + func GetHeadersString(i interface{}) string + func GetRandomUserAgent() string + type Headers map[string]interface + func (p Headers) GetQuery() string + func (p Headers) Set(key string, value interface{}) + func (p Headers) SetHeaders(headers Headers) + func NewHeaders() Headers + type Response struct + Body []byte + ContentLength int64 + Header http.Header + Status string + StatusCode int + func Get(url string, params map[string]interface{}) (httpResponse Response, err error) + func GetJsonHeader(url string, params map[string]interface{}, headers Headers) (httpResponse Response, err error) + func PostForm(targetUrl string, params map[string]interface{}) (httpResponse Response, err error) + func PostJson(targetUrl string, paramsStr []byte) (httpResponse Response, err error) + func PostJsonHeader(targetUrl string, paramsStr []byte, headers Headers) (httpResponse Response, err error)