simple

package
v0.0.0-...-25b8d04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL