html

package
v0.0.0-...-291e031 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate func(*html.Node) bool

func Class

func Class(name string) Predicate

func Element

func Element(name string) Predicate

func ElementWithClass

func ElementWithClass(el, class string) []Predicate

type Transform

type Transform func(*html.Node) (string, error)
func GetAllLinks() Transform

func GetAllText

func GetAllText() Transform

type Transformer

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

func NewTransformer

func NewTransformer(preds []Predicate, xf Transform) *Transformer

func (*Transformer) Transform

func (t *Transformer) Transform(r io.Reader) (string, error)

Jump to

Keyboard shortcuts

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