dom

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 10 Imported by: 0

README

dom

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

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

func (*Document) Select

func (d *Document) Select(selector string) *Element

func (*Document) SelectElements

func (d *Document) SelectElements(selector string) []*Element

type DocumentReader

type DocumentReader func(request *http.Request) (*Document, error)

func NewDocumentReader

func NewDocumentReader(client *http.Client) (DocumentReader, error)

type Element

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

func (*Element) GetAttr

func (e *Element) GetAttr(attrName string) (string, bool)

func (*Element) GetText

func (e *Element) GetText() string

func (*Element) Select

func (e *Element) Select(selector string) *Element

func (*Element) SelectElements

func (e *Element) SelectElements(selector string) []*Element

Jump to

Keyboard shortcuts

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