Documentation ¶
Index ¶
- func Contains(list []string, ele string) bool
- func CreateSameNameDir(path string) (string, error)
- func Delay(seconds int)
- func FileExists(filepath string) (bool, error)
- func Host(url string) string
- func Minify(html string) string
- func NewCookieClient() *http.Client
- func NewDownloadClient() *http.Client
- func PanicOnErr(err error)
- func PrintReqHeader(req *http.Request)
- func PrintRespHeader(resp *http.Response)
- func RandString(n int) string
- func ReadResponse(resp *http.Response) []byte
- func ReadResponseString(resp *http.Response) string
- func Split(pattern, text string) []string
- func SubmatchOne(s, regex string) string
- func Trim(s string) string
- type Downloader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSameNameDir ¶
func FileExists ¶
func NewCookieClient ¶
func NewDownloadClient ¶
func PanicOnErr ¶
func PanicOnErr(err error)
func PrintReqHeader ¶
func PrintRespHeader ¶
func RandString ¶
func ReadResponse ¶
func ReadResponseString ¶
func SubmatchOne ¶
Types ¶
type Downloader ¶
type Downloader interface { Download(url, storedir string) (file string, err error) DownloadBytes(url string) ([]byte, error) }
func NewDownloader ¶
func NewDownloader() Downloader
Source Files ¶
Click to show internal directories.
Click to hide internal directories.