Documentation
¶
Index ¶
- Constants
- func Date(format string, timestamp int64) string
- func DeleteFile(path string)
- func DownloadFile(url string, path string) error
- func DownloadImage(url string, path string) error
- func Explode(delimiter, text string) []string
- func GetSetHeaderWithString(url string, header map[string]string) (string, error)
- func GetWithBody(url string) (io.ReadCloser, error)
- func GetWithResp(url string) (*http.Response, error)
- func GetWithString(url string) (string, error)
- func Md5(str string) string
- func Query(url string, method string, parameter string, header map[string]string) (*http.Response, error)
- func ReadFile(path string) (string, error)
- func SendEmail(from string, to []string, title string, content string, host string, port int, ...) error
- func StrToTime(str string) int64
- func WriteLine(path string, data string)
Constants ¶
View Source
const HttpTimeOut = 10 * time.Second
超时时间
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
func DeleteFile(path string)
func GetSetHeaderWithString ¶
* header["Accept-Encoding"]="gzip, deflate, br"
func Query ¶
func Query(url string, method string, parameter string, header map[string]string) (*http.Response, error)
请求底层函数
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.