epubtree

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package epubtree Organize a list of filename with their path into a tree of directories.

Example:

  • A/B/C/D.jpg
  • A/B/C/E.jpg
  • A/B/F/G.jpg

This is transformed like:

A
 B
  C
   D.jpg
   E.jpg
 F
  G.jpg

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node added in v2.7.0

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

func (*Node) ChildCount added in v2.7.0

func (n *Node) ChildCount() int

func (*Node) FirstChild added in v2.7.0

func (n *Node) FirstChild() *Node

func (*Node) WriteString added in v2.7.0

func (n *Node) WriteString(indent string) string

WriteString string version of the tree

type Tree added in v2.7.0

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

func New

func New() *Tree

New initialize tree with a root node

func (*Tree) Add added in v2.7.0

func (n *Tree) Add(filename string)

Add the filename to the tree

func (*Tree) Root added in v2.7.0

func (n *Tree) Root() *Node

Root root node

Jump to

Keyboard shortcuts

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