Documentation
¶
Overview ¶
Code generated by re2go 4.0.2, DO NOT EDIT.
Code generated by re2go 4.0.2, DO NOT EDIT.
Code generated by re2go 4.2, DO NOT EDIT.
Code generated by re2go 4.2, DO NOT EDIT.
Code generated by re2go 4.0.2, DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNegativeClass ¶
For IsNegativeClass, its original pattern is like this: (?i)-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|footer|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|widget
Unfortunately, re2go doesn't handle anchor like ^ and $ internally, so for convenience I'll split that pattern into two: - `^hid$| hid$| hid |^hid ` - `-ad-|hidden|banner|combx|comment|com-|contact|footer|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|widget`
func IsPositiveClass ¶
Original pattern: (?i)article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story
func IsUnlikelyCandidates ¶
Original pattern: (?i)-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote
func MaybeItsACandidate ¶
Original pattern: (?i)and|article|body|column|content|main|mathjax|shadow
Types ¶
This section is empty.