content

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentElements

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

func ContentText

func ContentText(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(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() ([]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