wordpress

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL   = "https://developer.wordpress.org"
	LibraryID = "/wordpress/classes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WordPressSource

type WordPressSource struct{}

func New

func New() *WordPressSource

func (*WordPressSource) DetectWrapper

func (w *WordPressSource) DetectWrapper(method *source.Method) (bool, string, string)

DetectWrapper analyzes a method's source code to determine if it's a wrapper. Returns (isWrapper, targetName, targetKind).

func (*WordPressSource) DiscoverEntities

func (w *WordPressSource) DiscoverEntities(ctx context.Context, fetch source.FetchFunc) ([]string, error)

func (*WordPressSource) ID

func (w *WordPressSource) ID() string

func (*WordPressSource) Meta

func (*WordPressSource) ParseEntity

func (w *WordPressSource) ParseEntity(_ context.Context, url string, body []byte) (*source.Entity, []string, error)

func (*WordPressSource) ParseMethod

func (w *WordPressSource) ParseMethod(_ context.Context, url string, body []byte) (*source.Method, error)

func (*WordPressSource) ParseSourceCode

func (w *WordPressSource) ParseSourceCode(body []byte) (string, error)

ParseSourceCode extracts just the source code from a page.

func (*WordPressSource) ResolveWrapperURL

func (w *WordPressSource) ResolveWrapperURL(targetName, targetKind, entitySlug string) string

ResolveWrapperURL constructs the URL to fetch the wrapped method's documentation.

Jump to

Keyboard shortcuts

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