Documentation
¶
Index ¶
- func Float642String(f64 float64) string
- func GenerateId() int64
- func GetByHttp(url string) (string, error)
- func GetByHttpWithParams(apiUrl string, headers map[string]string, params map[string]string, ...) (string, error)
- func GetByHttpWithParamsBackDoc(apiUrl string, headers map[string]string, params map[string]string, ...) (*goquery.Document, error)
- func Int642String(i64 int64) string
- func PostByHttp(url, contentType string, params map[string]any) (string, error)
- func PostByHttpWithParams(apiUrl string, headers map[string]string, params map[string]string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByHttpWithParams ¶
func GetByHttpWithParams(apiUrl string, headers map[string]string, params map[string]string, timeout time.Duration, proxy *string) (string, error)
GetByHttpWithParams 带请求头、参数和超时的GET请求
func GetByHttpWithParamsBackDoc ¶
func GetByHttpWithParamsBackDoc(apiUrl string, headers map[string]string, params map[string]string, timeout time.Duration, proxy *string) (*goquery.Document, error)
GetByHttpWithParamsBackDoc 带参数的GET请求,返回goquery.Document
func PostByHttp ¶
PostByHttp 基础POST请求
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.