Documentation ¶
Index ¶
- func ConversionFormat(form ff.Form, resList map[string]string) map[string]string
- func DealCoding(html string, header http.Header) (string, error)
- func DownImg(form form.Form, url string, item form.Field, singleFieldMap *sync.Map) string
- func ErrorLine(form form.Form, msg string)
- func GetChannelList(form form.Form, callback func(listUrl string))
- func GetCharsetByContentType(contentType string) string
- func GetDir(path string, singleFieldMap *sync.Map) string
- func GetHref(href string, host string) string
- func GetHttpClient(form ff.Form) *http2.C
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func OnlyList(form ff.Form, s *goquery.Selection) bool
- func ResolveFields(field map[string]interface{}) map[string]form.Field
- func ResolveSelector(form form.Form, doc *goquery.Document, selector map[string]form.Field) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConversionFormat ¶
ConversionFormat 处理格式转换
func DealCoding ¶
DealCoding 解决编码问题
func GetChannelList ¶ added in v0.0.4
GetChannelList 获取栏目链接
func GetCharsetByContentType ¶ added in v0.0.4
GetCharsetByContentType 从contentType中获取编码
func GetHttpClient ¶ added in v0.0.15
GetHttpClient 获取http客户端
func ResolveFields ¶
ResolveFields 解析字段
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.