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