html

package
v1.25.9 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	*html.Lexer
	html.TokenType
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) Decoder

func (*Decoder) Bytes

func (d *Decoder) Bytes() []byte

func (Decoder) GetAttr added in v1.25.9

func (d Decoder) GetAttr(key string) string

getAttribute

func (Decoder) HasAttr added in v1.25.9

func (d Decoder) HasAttr(key string) bool

hasAttribute

func (*Decoder) NextAttr

func (d *Decoder) NextAttr(key, val string) bool

getElementsByClassName()

func (*Decoder) NextTag

func (d *Decoder) NextTag(name string) bool

getElementsByTagName

type Encoder

type Encoder struct {
	io.Writer
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) Encoder

func (Encoder) Encode

func (e Encoder) Encode(r io.Reader) error

func (*Encoder) SetIndent

func (e *Encoder) SetIndent(indent string)

Jump to

Keyboard shortcuts

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