From d4c590f2ec2797bd034d2ae75dd29061257af177 Mon Sep 17 00:00:00 2001 From: bjt-user Date: Sun, 5 May 2024 09:08:12 +0200 Subject: [PATCH] improved debug outputs --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9ce108e..e205eae 100644 --- a/main.go +++ b/main.go @@ -84,7 +84,7 @@ func print_children(heading *heading, headings []heading) { func print_children_recursive(heading *heading, headings []heading) { for index, _ := range headings { if headings[index].parent == heading { - fmt.Printf("Child of parent %p: %s\n", heading, headings[index].text) + fmt.Printf("Child of parent %p: %s (%p)\n", heading, headings[index].text, &headings[index]) print_children_recursive(&headings[index], headings) } }