Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 528 Bytes

README.src.md

File metadata and controls

41 lines (28 loc) · 528 Bytes

{name}

{go:header}

Parses indented code (Python, Pug, Stylus, Pixy, codetree, etc.) and returns a tree structure.

Installation

go get github.com/aerogo/codetree

Usage

tree, err := codetree.New(reader)
defer tree.Close()

Input

parent1
	child1
	child2
	child3
		child3.1
		child3.2
	child4

parent2
	child1

Output

See CodeTree structure.

The root node always starts with Indent being -1.

{go:footer}