Documentation ¶ Index ¶ Variables func BindSelection(sel *goquery.Selection, out any, options ...Options) error type Options type ProcessType func HtmlQuery(process func(s *goquery.Selection) error) ProcessType func Struct(out any, find string, options ...Options) ProcessType Constants ¶ This section is empty. Variables ¶ View Source var ( ErrValueCannotAddress = errors.New("value can not address") ErrValueNotBasicKind = errors.New("value not a basic kind") ErrValueCast = errors.New("value string cast error") ErrValueKindNotSupport = errors.New("value kind not support") ) Functions ¶ func BindSelection ¶ func BindSelection(sel *goquery.Selection, out any, options ...Options) error Types ¶ type Options ¶ type Options struct { FindTag string // "find" FormatTag string // "format" } type ProcessType ¶ type ProcessType = func(resp *http.Response, body io.ReadCloser) error func HtmlQuery ¶ func HtmlQuery(process func(s *goquery.Selection) error) ProcessType func Struct ¶ func Struct(out any, find string, options ...Options) ProcessType Struct 将HTML解析为Struct Source Files ¶ View all Source files bind.go process.go Click to show internal directories. Click to hide internal directories.