query

package
v0.0.0-...-7f112ee Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemMatchAnyElement lex.ItemType = lex.ItemDefaultMax + 1 + iota
	ItemMatchAnyElementShortHand
	ItemElementName
	ItemClassNamePrefixDot
	ItemClassName
	ItemIDPrefixPound
	ItemID
)

Variables

This section is empty.

Functions

func CompileQuery

func CompileQuery(q string) []matcher

func MatchNodes

func MatchNodes(n *html.Node, ms []matcher) []*html.Node

Types

type ContextNode

type ContextNode interface {
	// contains filtered or unexported methods
}

type Document

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

func NewDocument

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

func (*Document) Find

func (d *Document) Find(query string) *Selection

type Selection

type Selection struct {
	Nodes []*html.Node
}

Jump to

Keyboard shortcuts

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