tagPath

package
v0.0.0-...-377f66c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 1 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 {
	Key   string
	Value string
}

type Tag

type Tag struct {
	Name         string
	Attributes   []Attribute
	AttributePos int
}

func (*Tag) AddAttribute

func (t *Tag) AddAttribute(key string, value string)

func (*Tag) NextAttribute

func (tg *Tag) NextAttribute() *Attribute

type TagPath

type TagPath struct {
	Path    []Tag
	PathPos int
}

func NewTagPath

func NewTagPath() *TagPath

Constructing structs up front and reusing them for zero gc

func (*TagPath) GetCurrentPath

func (tp *TagPath) GetCurrentPath() string

func (*TagPath) NextTag

func (tp *TagPath) NextTag() *Tag

func (*TagPath) RemoveLast

func (t *TagPath) RemoveLast()

Jump to

Keyboard shortcuts

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