gohtml

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TagName = "html" // Gohtml tag for retriever from struct

Variables

This section is empty.

Functions

func CheckTarget

func CheckTarget(valueof reflect.Value) error

func NewDecode

func NewDecode(r io.Reader, v any) error

Parse finds and extracts data from a HTML reader stream

func TextExtractor

func TextExtractor(selection *goquery.Selection) (string, error)

Return trimed text from selection

func Unmarshal

func Unmarshal(content []byte, v any) error

Unmarshal finds and extracts data from a HTML content

Types

type ContentExtractor

type ContentExtractor func(selection *goquery.Selection) (string, error)

different types of content extractor

type TagExtractor

type TagExtractor string // Process selection from attribute

func (TagExtractor) Extractor

func (c TagExtractor) Extractor(selection *goquery.Selection) (string, error)

Return trimed text from selection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳