fetcher

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownPageType = errors.New("unknown page type")
)

Functions

func Convert

func Convert(conv reflect.Value, input, source any) any

Convert converts a html source to an object.

func FromInput

func FromInput(pageType string, input any) (any, error)

FromInput creates a new object from the html source with the specified input.

func New

func New(pageType string, input, source any) (any, error)

New creates a new object from a html source by a registered converter.

func Register

func Register(pageType string, conv Conv, urlOf func(input any) string)

Register registers a convType with a convert function.

Types

type Conv

type Conv = any

func(input any, doc hdq.NodeSet) <any-object>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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