treewriter

package module
v0.0.0-...-40c342a Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 3 Imported by: 1

README

treewriter

Treewriter is a library to write ASCII tree Go Version Go Reference License Report Card

Documentation

Index

Constants

View Source
const (
	DefaultLinkPrefix = "│  "
	DefaultMidPrefix  = "├──"
	DefaultEndPrefix  = "└──"
	DefaultNewline    = "\n"
)

Variables

Functions

func WriteTo

func WriteTo(w io.Writer, t Tree, conf *Config) (int64, error)

Types

type Config

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

func NewConfig

func NewConfig(linkPrefix, midPrefix, endPrefix, newline string) *Config

type Tree

type Tree interface {
	Children() []Tree
}

Jump to

Keyboard shortcuts

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