diff options
| author | Jeff Carr <[email protected]> | 2021-11-01 01:13:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-11-01 01:13:07 -0500 |
| commit | 86e73bab9f490ddeccb2744f3e7ee1094042616f (patch) | |
| tree | 362049c424e44c52a15826f6c5bd60b5dbc5f6ff /new-structs.go | |
| parent | 97a80003b9fddc15c58bcb01f371c48c8f821751 (diff) | |
CLEAN: remove more cruft
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'new-structs.go')
| -rw-r--r-- | new-structs.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/new-structs.go b/new-structs.go index 92ce84a..daeab64 100644 --- a/new-structs.go +++ b/new-structs.go @@ -135,19 +135,22 @@ func (n *Node) List() { var listChildrenParent *Node var listChildrenDepth int = 0 +// var indent string = "\t" +var indent string = " " + func indentPrintln(depth int, format string, a ...interface{}) { - var tabs string + var space string for i := 0; i < depth; i++ { - tabs = tabs + "\t" + space = space + indent } // newFormat := tabs + strconv.Itoa(depth) + " " + format - newFormat := tabs + format + newFormat := space + format log.Println(newFormat, a) } func (n *Node) ListChildren(dump bool) { - indentPrintln(listChildrenDepth, "\t", n.id, n.Width, n.Height, n.Name) + indentPrintln(listChildrenDepth, "", n.id, n.Width, n.Height, n.Name) if (dump == true) { n.Dump() |
