Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoilerplateBlock ¶
type BoilerplateBlock struct {
// contains filtered or unexported fields
}
BoilerplateBlock removes TextBlocks which have explicitly been marked as "not content".
func NewBoilerplateBlock ¶
func NewBoilerplateBlock(labelToKeep string) *BoilerplateBlock
func (*BoilerplateBlock) Process ¶
func (f *BoilerplateBlock) Process(doc *webdoc.TextDocument) bool
type LabelToBoilerplate ¶
type LabelToBoilerplate struct {
// contains filtered or unexported fields
}
LabelToBoilerplate marks all blocks that contain a given label as "boilerplate".
func NewLabelToBoilerplate ¶
func NewLabelToBoilerplate(labels ...string) *LabelToBoilerplate
func (*LabelToBoilerplate) Process ¶
func (f *LabelToBoilerplate) Process(doc *webdoc.TextDocument) bool
Click to show internal directories.
Click to hide internal directories.