html

package
v1.25.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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) Attr

func (d Decoder) Attr(key string) (string, bool)

func (*Decoder) Bytes

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

func (*Decoder) NextAttr

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

func (*Decoder) NextTag

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

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