html

package
v0.0.0-...-3990c93 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: AGPL-3.0 Imports: 3 Imported by: 1

README

(unstable package)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func Parse

func Parse(r io.Reader) (*Node, error)

func (*Node) Attr

func (n *Node) Attr(keys ...string) string

func (*Node) Classes

func (n *Node) Classes(class string) []*Node

func (*Node) Elements

func (n *Node) Elements(elms ...string) []*Node

func (*Node) Elements2

func (n *Node) Elements2(f func(*Node), elms ...string)

func (*Node) FakeParent

func (n *Node) FakeParent() *Node

func (*Node) FirstChild

func (n *Node) FirstChild() *Node

func (*Node) FirstChildElement

func (n *Node) FirstChildElement() *Node

func (*Node) ID

func (n *Node) ID(id string) *Node

func (*Node) IsElement

func (n *Node) IsElement(names ...string) bool

func (*Node) NextElement

func (n *Node) NextElement(name ...string) *Node

func (*Node) NextSibling

func (n *Node) NextSibling() *Node

func (*Node) NextSiblingElement

func (n *Node) NextSiblingElement() *Node

func (*Node) Parent

func (n *Node) Parent() *Node

func (*Node) ParentElement

func (n *Node) ParentElement() *Node

func (*Node) PlainText

func (n *Node) PlainText() string

func (*Node) Render

func (n *Node) Render(w io.Writer) error

Jump to

Keyboard shortcuts

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