xpath

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XPath

type XPath struct {
	// contains filtered or unexported fields
}

XPath language engine

Implementation details and limitations as per https://github.com/antchfx/xpath

func Make

func Make(ctx context.Context) XPath

func New

func New(ctx context.Context) *XPath

func (*XPath) CompileExpression

func (engine *XPath) CompileExpression(source string) (result expression.ICompiledExpression, err error)

func (*XPath) EvaluateExpression

func (engine *XPath) EvaluateExpression(e expression.ICompiledExpression,
	datum interface{},
) (result expression.IResult, err error)

func (*XPath) SetItemAwareLocator

func (engine *XPath) SetItemAwareLocator(name string, itemAwareLocator data.IItemAwareLocator)

Jump to

Keyboard shortcuts

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