• Stars
    star
    23
  • Rank 1,016,462 (Top 21 %)
  • Language
    Go
  • License
    Other
  • Created almost 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŒฒ Parses indented code and returns a tree structure.

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?

More Repositories

1

aero

๐Ÿš„ High-performance web server for Go.
Go
559
star
2

packet

๐Ÿ“ฆ Send network packets over a TCP or UDP connection.
Go
78
star
3

nano

๐Ÿ€ Fast, decentralized and git-trackable database.
Go
48
star
4

pixy

๐ŸŒณ Template compiler similar to Jade/Pug.
Go
22
star
5

certificate

๐Ÿ”’ Creates self-signed certificates for local development.
Go
22
star
6

pack

๐Ÿ“ฆ Packs the assets for your web server.
Go
19
star
7

scarlet

๐Ÿ’‹ Style sheets preprocessor similar to Stylus.
Go
13
star
8

http

๐ŸŽˆ HTTP client with a clean API.
Go
13
star
9

graphql

๐ŸŒ€ GraphQL server with zero configuration.
Go
12
star
10

run

๐Ÿƒ Runs an Aero project and restarts on code, template or style changes.
Go
11
star
11

log

๐Ÿ“ Logging with multiple output targets.
Go
10
star
12

flow

โžฐ Provides flow control for async algorithms and simplified concurrency.
Go
8
star
13

markdown

๐Ÿฌ Markdown wrapper.
Go
6
star
14

crawler

๐Ÿšฃ Web crawler.
Go
6
star
15

api

๐Ÿ“ Automatically implements your REST API.
Go
6
star
16

cluster

โ›ฒ Network cluster.
Go
6
star
17

mirror

โ†ช๏ธ Reflect utilities for Go data types.
Go
5
star
18

nano-backup

โš“ Backup utility for nano databases.
Go
5
star
19

csp

๐Ÿ”’ Helps building the "Content-Security-Policy" HTTP header.
Go
4
star
20

linter-performance

๐Ÿš„ Logs response time and size for each page.
Go
3
star
21

manifest

๐Ÿ”– Web manifest.
Go
3
star
22

session

๐Ÿ“š Session manager.
Go
3
star
23

session-store-nano

๐Ÿ“— Session store for the nano database.
Go
2
star
24

sitemap

๐ŸŒ Easily generate sitemaps.
Go
2
star
25

session-store-memory

๐Ÿ“— Memory store for Aero sessions.
Go
1
star