elementSpec

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 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 ElementSpec

type ElementSpec struct {
	ID         string            `json:"id" validate:"required"`
	TagName    string            `json:"tag_name" validate:"required"`
	Text       string            `json:"text"`
	Attributes map[string]string `json:"attributes"`
	Children   []ElementSpec     `json:"children"`
}

func (*ElementSpec) ContentStr

func (e *ElementSpec) ContentStr() string

func (*ElementSpec) Validate

func (e *ElementSpec) Validate() error

type IdToLocatorMap

type IdToLocatorMap map[string][]string

Jump to

Keyboard shortcuts

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