gitfstree

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 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 TreeNode

type TreeNode struct {
	URL *urls.URL
	// contains filtered or unexported fields
}

TreeNode represents a single node in a tree.

func NewTreeNode

func NewTreeNode() *TreeNode

NewTreeNode constructs a node that is used during construction of the tree.

func (*TreeNode) Child

func (t *TreeNode) Child(part string) (*TreeNode, bool)

Child retrieves a child at a given key.

func (*TreeNode) Children

func (t *TreeNode) Children() []string

Children returns the child keys of the tree.

func (*TreeNode) Insert

func (t *TreeNode) Insert(path []string, url *urls.URL)

Insert inserts a url element into the tree.

Jump to

Keyboard shortcuts

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