common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConversionFormat

func ConversionFormat(form ff.Form, resList map[string]string) map[string]string

处理格式转换

func DealCoding

func DealCoding(html string) (string, error)

解决编码问题

func DownImg

func DownImg(form form.Form, url string, item form.Field, singleFieldMap *sync.Map) string

下载图片(包括生产文件夹)

func ErrorLine

func ErrorLine(form form.Form, msg string)

错误日志

func GetDir

func GetDir(path string, singleFieldMap *sync.Map) string

func GetHref

func GetHref(href string, host string) string

获取完整a链接

func If

func If(condition bool, trueVal, falseVal interface{}) interface{}

伪三元运算

func ResolveFields

func ResolveFields(field map[string]interface{}) map[string]form.Field

解析字段

func ResolveSelector

func ResolveSelector(form form.Form, doc *goquery.Document, selector map[string]form.Field) map[string]string

解析选择器

Types

This section is empty.

Jump to

Keyboard shortcuts

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