Reformat code

This commit is contained in:
2023-09-02 23:49:02 +02:00
parent 1989ae996f
commit 21c956c545
26 changed files with 102 additions and 101 deletions

View File

@@ -23,10 +23,10 @@ func GenerateTree(strarr []string) string {
// iterate over each element
for iter, elem := range strarr {
// 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)
} else {
tmpstr = fmt.Sprintf( "%s╰ %s\n", tmpstr, elem)
tmpstr = fmt.Sprintf("%s╰ %s\n", tmpstr, elem)
}
}