treef

package module
v0.0.0-...-4502535 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 7 Imported by: 0

README

treef

Árvore de Arquivos

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Skip = errors.New("skip")

Functions

This section is empty.

Types

type Node

type Node struct {
	IdFunc func() []byte
	Left,
	Rigth uint64
	Name       string
	Data, Type interface{}
	Attr       map[string]interface{}

	Children []*Node
	Parent   *Node
}

func Attr

func Attr(n *Node, attr map[string]interface{}) *Node

func (*Node) Add

func (this *Node) Add(child ...*Node) *Node

func (Node) FPrint

func (this Node) FPrint(out io.Writer) (n int, err error)

func (*Node) GetOrCreatePath

func (this *Node) GetOrCreatePath(pth ...string) *Node

func (*Node) ID

func (this *Node) ID() []byte

func (Node) Path

func (this Node) Path() string

func (*Node) Remove

func (this *Node) Remove(child ...*Node) *Node

func (Node) Schema

func (this Node) Schema() Schema

func (*Node) Walk

func (this *Node) Walk(cb func(i, depth int, n *Node) error) (err error)

type Schema

type Schema struct {
	Left, Rigth uint64
	Name        string
}

func (Schema) Map

func (this Schema) Map() map[string]interface{}

func (Schema) String

func (this Schema) String() string

Jump to

Keyboard shortcuts

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