goquery

package module
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const DOCUMENT object.Type = "goquery.document"
View Source
const SELECTION object.Type = "goquery.selection"

Variables

This section is empty.

Functions

func Module

func Module() *object.Module

func Parse

func Parse(ctx context.Context, args ...object.Object) object.Object

Types

type Document

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

func NewDocument

func NewDocument(doc *goquery.Document) *Document

func NewDocumentFromReader

func NewDocumentFromReader(r io.Reader) (*Document, error)

func (*Document) Cost

func (d *Document) Cost() int

func (*Document) Equals

func (d *Document) Equals(other object.Object) object.Object

func (*Document) GetAttr

func (d *Document) GetAttr(name string) (object.Object, bool)

func (*Document) Inspect

func (d *Document) Inspect() string

func (*Document) Interface

func (d *Document) Interface() interface{}

func (*Document) IsTruthy

func (d *Document) IsTruthy() bool

func (*Document) RunOperation

func (d *Document) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Document) SetAttr

func (d *Document) SetAttr(name string, value object.Object) error

func (*Document) String

func (d *Document) String() string

func (*Document) Type

func (d *Document) Type() object.Type

func (*Document) Value

func (d *Document) Value() *goquery.Document

type Selection

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

func NewSelection

func NewSelection(sel *goquery.Selection) *Selection

func (*Selection) Cost

func (s *Selection) Cost() int

func (*Selection) Equals

func (s *Selection) Equals(other object.Object) object.Object

func (*Selection) GetAttr

func (s *Selection) GetAttr(name string) (object.Object, bool)

func (*Selection) Inspect

func (s *Selection) Inspect() string

func (*Selection) Interface

func (s *Selection) Interface() interface{}

func (*Selection) IsTruthy

func (s *Selection) IsTruthy() bool

func (*Selection) RunOperation

func (s *Selection) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Selection) SetAttr

func (s *Selection) SetAttr(name string, value object.Object) error

func (*Selection) String

func (s *Selection) String() string

func (*Selection) Type

func (s *Selection) Type() object.Type

func (*Selection) Value

func (s *Selection) Value() *goquery.Selection

Jump to

Keyboard shortcuts

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