xpath

package module
v0.0.0-...-9bb547f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDoc

func LoadDoc(path string, v any) error

LoadDoc 加载文件并反序列化进对象

func LoadURL

func LoadURL(url string, v any) error

LoadURL 加载链接并反序列化进对象

func Unmarshal

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

Unmarshal 将字节切片反序列化进对象

func UnmarshalNode

func UnmarshalNode(node *html.Node, v any) error

UnmarshalNode 将节点反序列化进对象

func UnmarshalReader

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

UnmarshalReader 将读取器反序列化进对象

func UnmarshalText

func UnmarshalText(text string, v any) error

UnmarshalText 将文本反序列化进对象

func UnmarshalValue

func UnmarshalValue(nodes []*html.Node, value reflect.Value) error

UnmarshalValue 将节点反序列化进 reflect.Value

Types

type XPath

type XPath interface {
	XPath() string
}

XPath 用来提供初始 XPath 路径

Jump to

Keyboard shortcuts

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