treewriter

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 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 Node

type Node interface {
	At(int) Node
	Len() int
}

Node is a tree node.

type Writer

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

Writer is a buffer that prints a tree.

func NewWriter

func NewWriter(w io.Writer, root Node) *Writer

NewWriter builds the tree and stores it in the Writer.

func (*Writer) Write

func (w *Writer) Write(prelude []byte) (int, error)

Jump to

Keyboard shortcuts

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