element

package
v0.0.0-...-b34c1d9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 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 Ele

type Ele struct {
	// contains filtered or unexported fields
}

Ele provides a base implementation of an element.

func (*Ele) GetID

func (e *Ele) GetID() string

GetID gets the element id.

func (*Ele) GetParent

func (e *Ele) GetParent() Element

GetParent gets the element parent.

func (*Ele) GetType

func (e *Ele) GetType() string

GetType gets the element type.

func (*Ele) SetID

func (e *Ele) SetID(id string)

SetID sets and overrides the element id. This should only be called in internal constructors.

func (*Ele) SetParent

func (e *Ele) SetParent(el Element)

SetParent sets the element parent. This should only be called in internal constructors.

func (*Ele) SetType

func (e *Ele) SetType(id string)

SetType sets the element type. This should only be called in internal constructors.

type Element

type Element interface {
	SetID(string)
	GetID() string
	SetParent(Element)
	GetParent() Element
	SetType(id string)
	GetType() string
}

Element defines an element at the lowest level.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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