Documentation ¶
Overview ¶
Package blacklist implements a generic blacklist for strings. It is intended for use in the Downloader and Prefetcher to filter out undesirable URLs (e.g. Google Analytics, ad networks, ...).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blacklist ¶
type Blacklist []blacklistItem
Blacklist is a list of regular expressions against which a string can be checked.
func DefaultList ¶
func DefaultList() Blacklist
DefaultList creates a new Blacklist using the default list of patterns.
func NewBlacklist ¶
NewBlacklist creates a fresh Blacklist from the given list of patterns.
Click to show internal directories.
Click to hide internal directories.