Documentation ¶
Index ¶
- func NewNotExpectValueError(got interface{}) error
- type Document
- func (dom *Document) Attr(attrName string) (string, error)
- func (dom *Document) Each(fn DomEachFunc) error
- func (dom *Document) EachWithBreak(fn DomEachFunc) error
- func (dom *Document) Eq(index int) *Document
- func (dom *Document) Find(selector string) *Document
- func (dom *Document) InnerHTML() (innerHTML string, err error)
- func (dom *Document) InnerHTMLWithoutError() string
- func (dom *Document) InnerText() string
- func (dom *Document) Length() int
- func (dom *Document) MustFind(selector string) (*Document, error)
- func (dom *Document) OuterHtml() (outerHtml string, err error)
- func (dom *Document) Text() string
- func (dom *Document) TrimSpaceInnerText() string
- func (dom *Document) TrimSpaceText() string
- type DocumentError
- type DomEachFunc
- type JsonUnmarshalError
- type NotExpectValueError
- type Parser
- type ParserMode
- type RegexpNotMatchError
- type RegexpWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotExpectValueError ¶
func NewNotExpectValueError(got interface{}) error
Types ¶
type Document ¶
func NewDocumentFromBytes ¶
func (*Document) EachWithBreak ¶
func (dom *Document) EachWithBreak(fn DomEachFunc) error
func (*Document) InnerHTMLWithoutError ¶
func (*Document) TrimSpaceInnerText ¶
func (*Document) TrimSpaceText ¶
type DocumentError ¶
type DocumentError struct {
errors.LocatorError
}
type DomEachFunc ¶
type JsonUnmarshalError ¶
type NotExpectValueError ¶
type Parser ¶
type Parser struct { Json *_json Regexp *_regexp Dom *Document // contains filtered or unexported fields }
func (*Parser) DebugStoreTestDir ¶
func (receiver *Parser) DebugStoreTestDir()
type ParserMode ¶
type ParserMode uint8
const ( ModeEnableJson ParserMode = 1 << iota ModeEnableDom ModeEnableRegexp )
type RegexpNotMatchError ¶
type RegexpWrapper ¶
type RegexpWrapper struct {
// contains filtered or unexported fields
}
func Regexp ¶
func Regexp(regexp *regexp.Regexp) *RegexpWrapper
func (*RegexpWrapper) FindAllStringSubMatch ¶
func (receiver *RegexpWrapper) FindAllStringSubMatch(s string, n int) ([][]string, error)
func (*RegexpWrapper) FindStringSubMatch ¶
func (receiver *RegexpWrapper) FindStringSubMatch(s string) ([]string, error)
func (*RegexpWrapper) FindSubMatch ¶
func (receiver *RegexpWrapper) FindSubMatch(b []byte) ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.