token

package
v0.0.0-...-41221c5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Offset int
	Name   string
	Value  string
}

type Character

type Character struct {
	Offset int
	Data   rune
}

func (Character) VisitToken

func (t Character) VisitToken(v TokenVisitor)

type DocumentType

type DocumentType struct {
	Offset int
}

func (DocumentType) VisitToken

func (t DocumentType) VisitToken(v TokenVisitor)

type EndTag

type EndTag struct {
	Offset int
	Name   string
}

func (EndTag) VisitToken

func (t EndTag) VisitToken(v TokenVisitor)

type StartTag

type StartTag struct {
	Offset     int
	Name       string
	Attributes []Attribute
	Closed     bool
}

func (StartTag) VisitToken

func (t StartTag) VisitToken(v TokenVisitor)

type Token

type Token interface {
	VisitToken(TokenVisitor)
}

type TokenVisitor

type TokenVisitor struct {
	DocumentType func(DocumentType)
	StartTag     func(StartTag)
	EndTag       func(EndTag)
	Character    func(Character)
}

Jump to

Keyboard shortcuts

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