hoo

package
v0.0.0-...-bddb4ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(list []string, ele string) bool

func CreateSameNameDir

func CreateSameNameDir(path string) (string, error)

func Delay

func Delay(seconds int)

func FileExists

func FileExists(filepath string) (bool, error)

func Host

func Host(url string) string

func Minify

func Minify(html string) string

func NewCookieClient

func NewCookieClient() *http.Client

func NewDownloadClient

func NewDownloadClient() *http.Client

func PanicOnErr

func PanicOnErr(err error)

func PrintReqHeader

func PrintReqHeader(req *http.Request)

func PrintRespHeader

func PrintRespHeader(resp *http.Response)

func RandString

func RandString(n int) string

func ReadResponse

func ReadResponse(resp *http.Response) []byte

func ReadResponseString

func ReadResponseString(resp *http.Response) string

func Split

func Split(pattern, text string) []string

func SubmatchOne

func SubmatchOne(s, regex string) string

func Trim

func Trim(s string) string

Types

type Downloader

type Downloader interface {
	Download(url, storedir string) (file string, err error)
	DownloadBytes(url string) ([]byte, error)
}

func NewDownloader

func NewDownloader() Downloader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL