node

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 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 Node

type Node struct {
	Name        string
	URL         string
	Description string
	Children    []Node
	Parent      *Node
}

func New

func New(name, url, description string) Node

func (*Node) AddChild

func (n *Node) AddChild(child Node)

func (*Node) Display

func (n *Node) Display()

func (*Node) FindChildByName

func (n *Node) FindChildByName(name string) *Node

func (*Node) GetChildren

func (n *Node) GetChildren() []Node

func (*Node) GetDescription

func (n *Node) GetDescription() string

func (*Node) GetFancyText

func (n *Node) GetFancyText() string

func (*Node) GetName

func (n *Node) GetName() string

func (*Node) GetPWD

func (n *Node) GetPWD() []string

func (*Node) GetParent

func (n *Node) GetParent() *Node

func (*Node) GetURL

func (n *Node) GetURL() string

func (*Node) SetChildren

func (n *Node) SetChildren(arr []Node)

func (*Node) SetParent

func (n *Node) SetParent(child *Node)

Jump to

Keyboard shortcuts

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