Documentation ¶
Index ¶
- func BytesToConfig(imgBytes []byte) (image.Config, error)
- func BytesToImage(imgBytes []byte) (image.Image, error)
- func FileToConfig(path string) (image.Config, error)
- func FileToImage(path string) (image.Image, error)
- func GetData(url, ua string) (body []byte, err error)
- func GetRealURL(url string) (realurl string, err error)
- func ImageAnalysis(data string) (url string, con *image.Config)
- func NewDefaultClient() *http.Client
- func RandUA() string
- func RequestDataWith(client *http.Client, url, method, referer, ua string, body io.Reader) (data []byte, err error)
- func URLToConfig(url string) (image.Config, error)
- func UpImgByte(file []byte) (url string, con *image.Config)
- func UpImgUrl(imgurl string) (url string)
- func UpImgfile(filePath string) (url string, con *image.Config)
- func Web(client *http.Client, url, method string, setheaders func(*http.Request), ...) (data []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToImage ¶
将 []byte 类型的图片数据转换为 image.Image 类型
func NewDefaultClient ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.