Help us shape the future of Go! Take the 2026 Go Developer Survey

content

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentElements

func ContentElements(ctx context.Context, content Content) ([]element.Element, error)

func ContentText

func ContentText(ctx context.Context, content Content, separator *string) (string, error)

Extracts the full raw text, or returns null if no text content can be found.

Types

type Content

type Content interface {
	Text(ctx context.Context, separator *string) (string, error) // Extracts the full raw text, or returns null if no text content can be found.
	Iterator() iterator.Iterator                                 // Creates a new iterator for this content.
	Elements(ctx context.Context) ([]element.Element, error)     // Returns all the elements as a list.
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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