stringify

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stringify

func Stringify[T comparable](node container.Node[T], options *Options) string

Stringify converts node to string

Types

type Options

type Options struct {
	Prefix     string
	Parent     string // default "│  "
	Space      string // default "   "
	Branch     string // default "├──"
	LastBranch string // default "└──"
}

Options represents a options for stringify Node

Jump to

Keyboard shortcuts

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