wordpress

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WordpressFinder

type WordpressFinder struct {
	// Words is a list of words that identify WordPress patterns. These could be plugins, urls, etc.
	Words []string
	// Regex is the combined Words but with a regex pattern for searching
	Regex *regexp.Regexp
}

WordpressFinder is a type for finding related WordPress patterns in the given HTML.

func NewWordpressPatternFinder

func NewWordpressPatternFinder() *WordpressFinder

NewWordpressPatternFinder creates a new WordpressPatternFinder instance with default configuration.

func (*WordpressFinder) Find

func (wpf *WordpressFinder) Find(html string) []string

Find returns a list of matched HTML that contains the WordPress identifiers.

Jump to

Keyboard shortcuts

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