soup

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 2 Imported by: 0

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 NewNode

func NewNode(node *html.Node) *Node

func Parse

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

func (*Node) AllElements

func (n *Node) AllElements() []*Node

func (*Node) FindAll

func (n *Node) FindAll(tag string) []*Node

func (*Node) GetAttribute

func (n *Node) GetAttribute(key string) string

func (*Node) Remove

func (n *Node) Remove()

func (*Node) RemoveAttribute

func (n *Node) RemoveAttribute(key string)

func (*Node) Render

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

func (*Node) SetAttribute

func (n *Node) SetAttribute(key, val string)

Jump to

Keyboard shortcuts

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