Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.06 KB

explanation.md

File metadata and controls

39 lines (32 loc) · 1.06 KB

Go tree implementation

Symbols

Letter Unicode Comment
I vertical
K vertical and right
L up and right
0 Space
F The last dir or file
C Not the last

Scheme

(root)              Is final       Pseudographics
|-- .git            C              I
|-- build           C              K
|   |-- got         CC             IK
|   .-- exe         CF             IL
|-- main.go         C              K
.-- test            F              L
    |-- dir0        FC             0
    |-- dir1        FC             0K
    |   |-- file    FCC            0IK
    |   .-- file    FCF            0IL
    .-- dir2        FF             0L

Rules

Children inherit FC-column from the parent directory.

IKL-column for nested dirs:

  • the last F converts to L
  • the last C converts to K
  • not last F to 0
  • not last C to I