Documentation ¶
Index ¶
- func CreateTarball(tarballFilePath string, topDir string, filePaths []string) error
- func DownloadTo(urlS string, dir string, bar *mbpp.BarProxy)
- func DownloadToPrefix(urlS string, dir string, prefix string, bar *mbpp.BarProxy)
- func Fetch(urlS string, headers map[string]string) (*http.Response, error)
- func FetchBin(urlS string, headers map[string]string) ([]byte, error)
- func FetchDoc(urlS string, headers map[string]string) (*goquery.Document, error)
- func FetchDocAs(urlS string, headers map[string]string, sel string, ...) int
- func FetchJson(urlS string, headers map[string]string) (*fastjson.Value, error)
- func GetPathFile(p string) string
- func GetUrlPathFile(urlS string) string
- func MarshalJSON(v interface{}) []byte
- func PackCbzArchive(dirIn string)
- func PadLeft(s string, leng int, pre string) string
- func RemoveAll(s string, subs ...string) string
- func SplitLen(str string, size int) []string
- func UrlExt(urlS string) string
- type Counter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarball ¶
func DownloadToPrefix ¶
func FetchDocAs ¶
func FetchDocAs(urlS string, headers map[string]string, sel string, f func(int, int, string, *goquery.Selection)) int
FetchDocAs means Fetch Doc A's params are total, index, href, el returns if total > 0
func GetPathFile ¶
func GetUrlPathFile ¶
func MarshalJSON ¶
func MarshalJSON(v interface{}) []byte
func PackCbzArchive ¶
func PackCbzArchive(dirIn string)
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func MakeCounter ¶
func NewCounter ¶
Click to show internal directories.
Click to hide internal directories.