Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - aerogo/codetree: :evergreen_tree: Parses indented code and returns a tree structure.

:evergreen_tree: Parses indented code and returns a tree structure. - aerogo/codetree

Visit SiteGitHub - aerogo/codetree: :evergreen_tree: Parses indented code and returns a tree structure.

GitHub - aerogo/codetree: :evergreen_tree: Parses indented code and returns a tree structure.

:evergreen_tree: Parses indented code and returns a tree structure. - aerogo/codetree

Powered by 0x5a.live 💗

codetree

Godoc Report Tests Coverage Sponsor

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.

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

GoLang Resources

are all listed below.

Resources

listed to get explored on!!

Made with ❤️

to provide different kinds of informations and resources.