q

package
v0.0.0-...-81af71c Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputFunc

type InputFunc func(*html.Node) ([]string, error)

InputFunc is the return value for all inputs.

func Attr

func Attr(expr string) InputFunc

func With

func With(v []string) InputFunc

With uses the given input with no processing.

func XPath

func XPath(expr string) InputFunc

XPath performs an xpath query on the current node.

type ProcessorFunc

type ProcessorFunc func([]string) ([]string, error)

ProcessorFunc is the return value for all processors

func Regexp

func Regexp(r string) ProcessorFunc

Regexp performs a regular expression on the previous value in query chain, returning the first matched string.

func Replace

func Replace(template string) ProcessorFunc

Replace calls sprintf using template and previous value in query chain.

Jump to

Keyboard shortcuts

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