file

package
v0.0.0-...-110d06e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirSize

func DirSize(path string) (int64, error)

func Exists

func Exists(path string) bool

exists Whether the path exists

func FileSize

func FileSize(path string) int64

Types

type Printer

type Printer interface {
	Print(Tree) string
}

Printer is printer interface

type Tree

type Tree interface {
	Add(text string) Tree
	AddTree(tree Tree)
	Items() []Tree
	Text() string
	Print() string
}

Tree is tree interface

func New

func New(text string) Tree

New returns a new GoTree.Tree

Jump to

Keyboard shortcuts

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