Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexUrlExtractor ¶
type RegexUrlExtractor struct {
// contains filtered or unexported fields
}
RegexUrlExtractor is a concrete implementation of the RegexUrlExtractor interface, using regex for extraction.
func NewRegexUrlExtractor ¶
func NewRegexUrlExtractor(query string) (*RegexUrlExtractor, error)
NewRegexUrlExtractor creates a new regular expression to extract urls
func (*RegexUrlExtractor) Extract ¶
func (re *RegexUrlExtractor) Extract(text string) []string
Extract implements the UrlExtractor interface, using the regex to find urls in the given text.
type UrlExtractor ¶
UrlExtractor is an interface that defines the contract for url extraction.
Click to show internal directories.
Click to hide internal directories.