Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
var ( JsonFactory Factory = func(bytes []byte, logger logger.Logger) Parser { return newJson(bytes).WithLogger(logger.With("parser", "json")) } HTMLFactory Factory = func(bytes []byte, logger logger.Logger) Parser { return newHTML(bytes).WithLogger(logger.With("parser", "html")) } XPathFactory Factory = func(bytes []byte, logger logger.Logger) Parser { return newXPath(bytes).WithLogger(logger.With("parser", "xpath")) } )
type ParseResult ¶
type ParseResult struct {
Raw string `json:"raw"`
}
func (*ParseResult) IsEmpty ¶ added in v0.0.6
func (p *ParseResult) IsEmpty() bool
func (*ParseResult) ToJson ¶
func (p *ParseResult) ToJson() string
Click to show internal directories.
Click to hide internal directories.