tree

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 7 Imported by: 1

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  `json:"name"`
	Children []*Node `json:"children,omitempty"`
}

type Tree

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

func NewTree

func NewTree(fs afero.Fs, path string) *Tree

func (*Tree) MakeTree

func (t *Tree) MakeTree() error

func (*Tree) ToJSON

func (t *Tree) ToJSON() (string, error)

func (*Tree) ToMarkdown

func (t *Tree) ToMarkdown() string

func (*Tree) ToString

func (t *Tree) ToString() string

Jump to

Keyboard shortcuts

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