mirror of
https://github.com/maride/pancap.git
synced 2024-11-22 16:54:25 +00:00
Replace ASCII tree drawing with Unicode symbols
This commit is contained in:
parent
f0b5ab140e
commit
29aba89b6a
@ -24,9 +24,9 @@ func GenerateTree(strarr []string) string {
|
|||||||
for iter, elem := range strarr {
|
for iter, elem := range strarr {
|
||||||
// check if we got the last element
|
// check if we got the last element
|
||||||
if iter < len(strarr) - 1 {
|
if iter < len(strarr) - 1 {
|
||||||
tmpstr = fmt.Sprintf("%s|- %s\n", tmpstr, elem)
|
tmpstr = fmt.Sprintf("%s├ %s\n", tmpstr, elem)
|
||||||
} else {
|
} else {
|
||||||
tmpstr = fmt.Sprintf( "%s'- %s\n", tmpstr, elem)
|
tmpstr = fmt.Sprintf( "%s╰ %s\n", tmpstr, elem)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user