Documentation
¶
Index ¶
- func ConvertToByte(src string, srcCode string, targetCode string) []byte
- func Date(format string, timestamp int64) string
- func DeleteFile(path string) error
- func DownloadFile(url string, path string) error
- func DownloadImage(url string, path string) error
- func Explode(delimiter, text string) []string
- func GetExtensionName(fileName string) string
- func GetToBody(url string) (io.ReadCloser, error)
- func GetToResp(url string) (*http.Response, error)
- func GetToString(url string, setting HttpSetting) (string, error)
- func In_array(array interface{}, item interface{}) bool
- func IsGBK(data []byte) bool
- func Md5(str string) string
- func MkDirDepth(path string) error
- func Mt_rand(min, max int64) int64
- func PostToString(url string, setting HttpSetting) (string, error)
- func Query(url string, method string, setting HttpSetting) (*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)
- type HttpSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToByte ¶ added in v0.1.2
func DeleteFile ¶
func GetToString ¶ added in v0.1.0
func GetToString(url string, setting HttpSetting) (string, error)
get获取字符串结果
func PostToString ¶ added in v0.1.0
func PostToString(url string, setting HttpSetting) (string, error)
post获取字符串结果
Types ¶
Click to show internal directories.
Click to hide internal directories.